Python Programming Learning Circle
Aug 1, 2022 · Fundamentals
Understanding Python Underscore Naming Conventions and Name Mangling
This article explains the various meanings of single and double underscores in Python, outlines the five common underscore naming patterns, demonstrates how name mangling works for double‑leading underscores, and shows practical uses of the underscore as a throwaway variable and REPL placeholder.
Name ManglingUnderscoresnaming-conventions
0 likes · 11 min read