elements-of-python-style icon indicating copy to clipboard operation
elements-of-python-style copied to clipboard

Goes beyond PEP8 to discuss what makes Python code feel great. A Strunk & White for Python.

Results 24 elements-of-python-style issues
Sort by recently updated
recently updated
newest added

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...

enhancement
research needed

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...

enhancement
will fix

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 =...

enhancement
will fix

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

enhancement