+ 3

What is 'name mangling' ?

"The purpose of name mangling is to avoid unintentional access of private class members."

6th Oct 2020, 6:33 AM
Rajan K
Rajan K - avatar
1 Answer
0
In Python, mangling is used for class attributes that one does not want subclasses to use which are designated as such by giving them a name with two leading underscores and no more than one trailing underscore.
26th Jun 2021, 7:46 AM
MatanzaBC
MatanzaBC - avatar