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?

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?