(Dec-07-2017, 03:55 AM)Windspar Wrote: python does have private class variablesThat variable is absolutely not private. It is what is called "name mangled" and can still be accessed with effort. It is also highly discouraged in python.
class Car: def __init__(self, name): self.__name = name mycar = Car("Stratus") print(mycar._Car__name)
Output:Stratus
https://docs.python.org/3/tutorial/class...-variables