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?

Does Python Garbage Collector Behave Any Different With A _ Single Underscore Variable Name And Is It Really A "throwaway" Variable?

Imagine a hypothetical situation where a function returns two values: a huge dataset you are not in… Read more Does Python Garbage Collector Behave Any Different With A _ Single Underscore Variable Name And Is It Really A "throwaway" Variable?

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?

Does Python Garbage Collector Behave Any Different With A _ Single Underscore Variable Name And Is It Really A "throwaway" Variable?

Imagine a hypothetical situation where a function returns two values: a huge dataset you are not in… Read more Does Python Garbage Collector Behave Any Different With A _ Single Underscore Variable Name And Is It Really A "throwaway" Variable?