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.
1.4m articles
1.4m replys
5 comments
57.0k users