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

Are Python Args And Kwargs Ever Named Something Else In Practice?

Python does not restrict the names of parameters, however some parameter names are strongly governe… Read more Are Python Args And Kwargs Ever Named Something Else In Practice?

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?

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?