Where is the Python documentation for the special methods? (__init__, __new__, __len__, ...)

mk12 picture mk12 · Sep 13, 2009 · Viewed 21.1k times · Source

Where is a complete list of the special double-underscore/dunder methods that can be used in classes? (e.g., __init__, __new__, __len__, __add__)

Answer

Martin Geisler picture Martin Geisler · Sep 13, 2009

Please take a look at the special method names section in the Python language reference.