Reputation: 123
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
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
Reputation: 33407
All that information is in the Data Model section of Python docs
Upvotes: 3