views:

101

answers:

3

Are all PEP 8 rules still valid?

Are there any which are obsolete?

Isn't there a more explanatory cheat sheet that this one.

A: 

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

alpha123
+1  A: 

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!

Adam Vandenberg
+1 for "suggestions". One of my favorite lines of the PEP says `But most importantly: know when to be inconsistent -- sometimes the style guide just doesn't apply. When in doubt, use your best judgment. Look at other examples and decide what looks best.`
ma3
+4  A: 

Here is the current version of PEP 8. It was last updated 2010 August 29.

birryree
Perfect, thank you, I didn't know that it is updated regularly.
vidul