Tagged articles

underscores

4 articles · Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Sep 30, 2020 · Fundamentals

What Do Single and Double Underscores Really Mean in Python?

This article explains the five underscore naming patterns in Python—single leading, single trailing, double leading, double leading and trailing, and a solitary underscore—detailing their conventions, the name‑mangling mechanism, and how they affect class attributes and imports.

Naming ConventionsPEP 8Python
0 likes · 12 min read
What Do Single and Double Underscores Really Mean in Python?
MaGe Linux Operations
MaGe Linux Operations
Dec 25, 2018 · Fundamentals

What Do Single and Double Underscores Mean in Python? A Complete Guide

This article explains the five underscore naming patterns in Python—single leading, single trailing, double leading, double leading and trailing, and a solitary underscore—detailing their conventions, how name mangling works, and the impact on variable and method behavior with clear code examples.

Naming ConventionsPEP 8name mangling
0 likes · 12 min read
What Do Single and Double Underscores Mean in Python? A Complete Guide