3 ms·
It took me far too long to realize that “dunder” just means “double underscore” and it wasn't some academic term from grad-level CS. Knowing that made hem less
by parpfish 3y ago
It took me far too long to realize that “dunder” just means “double underscore” and it wasn't some academic term from grad-level CS.
Knowing that made hem less scary
- rigid 3y ago...at least you weren't looking for any references to "mifflin" functions.
- parpfish 3y agoThe __mifflin__ method is used to define a way for the object to waste cpu-cycles so it looks busy
- userbinator 3y agoI wonder when it became common, since I did some Python stuff many years ago and never encountered the term in that context. On the other hand... https://en.wikipedia.org/wiki/Dunder https://en.wikipedia.org/wiki/Dunder
- maxnoe 3y agoAccording to Wikipedia, the term dates back to at least 2002: > The frequent use of a double underscores in internal identifiers in Python gave rise to the abbreviation dunder; this was coined by Mark Jackson[3] and independently by Tim Hochberg,[4] within minutes of each other, both in reply to the same question in 2002.[5][6]
- mardifoufs 3y agoI realized most python related terms usually don't have a very serious origin. I remember when I learned that the name for Python's packaging format ("wheels") is short for "cheese wheels"... because PyPi used to be called "The Cheese Shop"! I always thought it was some sort of reference to the structure of the package or something lol. I like it though!