Techniques for writing good python code [closed]
What are the well-known and generally recognized (not subjective) techniques for writing good python code. Structuring it (in opposite to spaghetti code). Good practices for decomposition and decision to make new function or class and similar practical things. You can post a link where are described and demonstrating them in opposite to poor practices.
thank you
See: PEP 8
Code like a pythonista http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html
General sense applies, and follow the style guide:
http://www.python.org/dev/peps/pep-0008/
精彩评论