Private methods in Python
Python doesn’t have the concept of private methods or attributes. It’s all about how you implement your class. But you can use pseudo-private variables (name mangling); any variable preceded by __(two underscores) becomes a pseudo-private variable. From the documentation: Since there is a valid use-case for class-private members (namely to avoid name clashes of names … Read more