p3t3
p3t3

Reputation: 123

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

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",
}

Upvotes: 0

Views: 171

Answers (2)

TobiMarg
TobiMarg

Reputation: 3807

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

Upvotes: 2

JBernardo
JBernardo

Reputation: 33407

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

Upvotes: 3

Related Questions