Tagged articles
2 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Mar 14, 2017 · Fundamentals

Why Python’s Double Underscore Doesn’t Guarantee True Privacy

This article explains Python’s double‑underscore name‑mangling for private attributes, how they can still be accessed via class methods, the pitfalls of attribute shadowing, and why deleting dict entries may raise errors due to CPython’s underlying C implementation.

CPythonPythonattribute shadowing
0 likes · 4 min read
Why Python’s Double Underscore Doesn’t Guarantee True Privacy