Style conventions for Python code

George Yoshida ml at dynkin.com
Tue Sep 14 10:37:33 EDT 2004


Will McGugan wrote:

> Is there a recommended coding style for Python documented anywhere? 
> Fortunately there will be no endless debates on proper indentation and 
> where to put braces ;) But I wonder if there is explicit 'Pythonic' 
> naming conventions and ways of structuring code..

PEP-8 is exactly what you're looking for!

   Style Guide for Python Code
   http://www.python.org/peps/pep-0008.html

- george



More information about the Python-list mailing list