Python __Underscore__ Methods
siafoo.net
siafoo.net
Discussion of similar article: https://news.ycombinator.com/item?id=6886411
Direct link to the article from that discussion (original no longer available): https://github.com/RafeKettler/magicmethods/blob/master/magi...
What would it take to get this information into the official python documentation and organized in an appropriate manner there?
There are so many tutorials and reference guides out there for any given language and they suffer from many deficiencies. They are often out of date, incorrect, unclear, or just plain wrong. But an article from 8 years ago has a good chance of being a top Google result. The minsinformation spreads. If the work was instead built into the official project documentation, it can be easily tracked and updated as the language/project evolves.
It's already there:
https://docs.python.org/3/reference/datamodel.html#special-m...
Sigh. I got bit by the same thing I was lamenting in my earlier post.