Tag view

#conventions

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with conventions

1 card

Python Easy Theory

Single underscore, double underscore, name mangling, and dunder methods

A single underscore is a convention for internal use, double underscore triggers name mangling in classes, and dunder names are reserved for language-defined behavior.

  • Single underscore is social, not enforced
  • Double underscore rewrites names to reduce accidental clashes
  • Dunder names should not be invented casually

Single underscore, double underscore, name mangling, and dunder methods