Links
- These are aka 'magic methods'.
- Special
__
method__
names - Special method lookup for new-style classes
- Guide to Python's Magic Methods (2011)
- Table of magic methods and how they're invoked
- Numeric magic methods
- Type Conversion
__index__
|__trunc__
|__coerce__
- Making Custom Sequences
__reversed__
|__contains__
|__concat__
- Pickling your Objects
__getinitargs__
|__getnewargs__
|__getstate__
|__setstate__
- Special Methods