A full list of special double-underscore properties in standard python libraries?

170 views Asked by At

Would anyone have a list of special python properties that begin and end with a double underscore with a brief explanation of their functionality?

Something along the following lines:

{
    "__slots__": "an iterable that restricts a set of admissible methods in a class",
    "__imul__": "*=",
    "__doc__": "docstring",
}
2

There are 2 answers

0
JBernardo On

All that information is in the Data Model section of Python docs

0
TobiMarg On

You can look here and here (python docs) for a list. But I don't know if they are really complete lists.