Are all PEP 8 rules still valid?
Are there any which are obsolete?
Isn't there a more explanatory cheat sheet that this one.
Are all PEP 8 rules still valid?
Are there any which are obsolete?
Isn't there a more explanatory cheat sheet that this one.
I still go by the PEP 8 rules, as they are recommended in the Python tutorial. I assume all are still valid, but others may differ (Google for instance has different rules).
PEP 8 is still the preferred style guide for Python code. Watching the changes to Django, for instance, I see edits for PEP 8 (such as "2 blank lines after the imports.)
They are still suggestions, though strong ones, and differences in house style are out there.
I didn't know about that cheat-sheet before; seems like having one like that is a good idea!
Here is the current version of PEP 8. It was last updated 2010 August 29.