Skip to content Skip to sidebar Skip to footer
Showing posts with the label Naming Conventions

Should Class-specific "constants" Still Be Declared At Module Level?

In PEP 8, it's stated that 'Constants are usually defined on a module level […]'. This… Read more Should Class-specific "constants" Still Be Declared At Module Level?

In Python, What's The Best Way To Avoid Using The Same Name For A __init__ Argument And An Instance Variable?

Whats the best way to initialize instance variables in an init function. Is it poor style to use th… Read more In Python, What's The Best Way To Avoid Using The Same Name For A __init__ Argument And An Instance Variable?