Content
"Private" instance variables that cannot be accessed except from inside an object don’t exist in Python. However, there is a convention that is followed by most Python code: a name prefixed with an underscore (e.q. spam) should be treated as a non-public part of the API (whether it is a function, a method or a data member). It should be considered an imple- mentation detail and subject to change without notice. Should I just H have private variables? No. It’s the other languages that are wrong.