vimwiki

Python naming convention

note: not universal

Entity Naming Convention Example
Variable Snake Case my_variable
Function/Method Snake Case (less common: camel case) my_function()
Class Pascal Case MyClass()
Constant ALL_CAPS MY_CONSTANT
Variable/Method intended for internal use Single Leading Underscore _my_variable, _my_function()
Variable/Method intended for name mangling Double Leading Underscore __my_variable, __my_function()
Special Method/Attribute Double Leading and Trailing Underscores init(), len()