Introduction
Name mangling helps protect class attributes from being changed accidentally from outside the class.
When you want to hide a class attribute from outside access.
When you want to avoid name conflicts in subclasses.
When you want to make an attribute private but still accessible inside the class.
When you want to prevent accidental overwriting of attributes in large projects.