Private Variables and Methods

The Python language does not directly support private variables and methods in the Java/C++ sense–that is, variables that are not accessible by “clients” of the class. However, there is a common convention used in Python: variables and methods that begin with a underscore (“_”) are considered private and are not to be referenced outside the class.