elements-of-python-style
elements-of-python-style copied to clipboard
Goes beyond PEP8 to discuss what makes Python code feel great. A Strunk & White for Python.
It can be confusing to have multiple exit points in a method. With blessings of the powers that be I would like to submit an example (asking for guidance on...
As was mentioned in PR #16, the [PEP 257](https://www.python.org/dev/peps/pep-0257/) document has some good pointers on the style of docstrings that may be worth highlighting, or at least linking to, within...
I think this should be one for "Six of One, Half a Dozen of the Other". Lots of people like doing various indentation styles for this, e.g. ``` file_formats =...
I mention `dt.datetime.utcnow()` here: https://github.com/amontalenti/elements-of-python-style#the-standard-library Looks like this is deprecated in Python 3.12. Covered well by Miguel Grinberg here: https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated