/ Published in: Python
Python: Private Variables
http://docs.python.org/tut/node11.html#SECTION0011600000000000000000
Any identifier of the form __spam (at least two leading underscores, at most one trailing underscore) is textually replaced with _classname__spam, where classname is the current class name with leading underscore(s) stripped.
Truncation may occur when the mangled name would be longer than 255 characters. When the class name consists of only underscores, no mangling occurs.
http://docs.python.org/tut/node11.html#SECTION0011600000000000000000
Any identifier of the form __spam (at least two leading underscores, at most one trailing underscore) is textually replaced with _classname__spam, where classname is the current class name with leading underscore(s) stripped.
Truncation may occur when the mangled name would be longer than 255 characters. When the class name consists of only underscores, no mangling occurs.