Where is a complete list of the special double-underscore/dunder methods that can be used in classes? (e.g., __init__, __new__, __len__, __add__)
__init__
__new__
__len__
__add__
Please take a look at the special method names section in the Python language reference.
2.1m questions
2.1m answers
60 comments
57.0k users