Why are Python’s ‘private’ methods not actually private?
The name scrambling is used to ensure that subclasses don’t accidentally override the private methods and attributes of their superclasses. It’s not designed to prevent deliberate access from outside. For example: Of course, it breaks down if two different classes have the same name.