In python do you generally use PEP 8 -- Style Guide for Python Code as your coding standards/guidelines? Are there any other formalized standards that you prefer?
closed as not constructive by Will Jan 23 '13 at 16:05As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question. |
|||
|
As mentioned by you follow PEP 8 for the main text, and PEP 257 for docstring conventions Along with Python Style Guides, I suggest that you refer the following: |
||||
|
I follow the Python Idioms and Efficiency guidelines, by Rob Knight. I think they are exactly the same as PEP 8, but are more synthetic and based on examples. If you are using wxPython you might also want to check Style Guide for wxPython code, by Chris Barker, as well. |
||||
|
PEP 8 is good, the only thing that i wish it came down harder on was the Tabs-vs-Spaces holy war. Basically if you are starting a project in python, you need to choose Tabs or Spaces and then shoot all offenders on sight. |
|||||
|
I stick to PEP-8 very closely. There are three specific things that I can't be bothered to change to PEP-8.
|
|||||
|
To add to bhadra's list of idiomatic guides: Checkout Anthony Baxter's presentation on Effective Python Programming (from OSON 2005). An excerpt:
|
||||
|
I follow it extremely rigorously. The only god before PEP-8 is existing code bases. |
|||||
|
Yes, I try to follow it as closely as possible. I don't follow any other coding standards. |
|||
|
I follow the PEP8, it is a great piece of coding style. |
||||
|