Skip to content

Python

Naming and conventions

NomDescription
_fooVariable/method is private
foo_Avoid naming conflict with reserved keywords
__fooName mangling: will add the class name as prefix → _ClassName__foo
__foo__Special attribute/method provided by Python
_Temporary/throaway variable

Resources

Learning