|–|–|–| |Identifier Type| Format | | Class | CamelCase| |Variable/Function| words joined by underscore |Internal functions| prefixed by a single underscore|
Using dict.get to provide default values i.e. instead of:
log_severity = None configuration.get(‘severity’, log.Info)
i.e. if name in (“x”,“y”,“z”) instead of if name == “x” …
i.e. Abstract code out into a helper function
But not excessively
https://hackernoon.com/going-beyond-the-idiomatic-python-a321b6c6a5e6 https://jeffknupp.com/writing-idiomatic-python-ebook/