Style conventions for Python code

W

Will McGugan

Hi,

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


Thanks,

Will McGugan
 
A

Alexis Roda

Will said:
Hi,

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

http://www.python.org/peps/pep-0008.html


HTH
--
////
(@ @)
----------------------------oOO----(_)----OOo--------------------------
<> Ojo por ojo y el mundo acabara ciego
/\ Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain)
-----------------------------------------------------------------------
 
G

George Yoshida

Will said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,675
Latest member
RollandKna

Latest Threads

Top