Coding Standards (and Best Practices)

T

Trent Mick

[Isaac Rodriguez wrote]
Hi,

I am fairily new to Python, but I am really liking what I am seeing. My team
is going to re-design some automation projects, and we were going to use
Python as our programming language. One of the things we would like to do,
since we are all new to the language, is to define a set of guidelines and
best practices as our coding standards.

Does anyone know where I can get some information about what the community
is doing? Are there any well defined guidelines established?

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


Cheers,
Trent
 
I

Isaac Rodriguez

Hi,

I am fairily new to Python, but I am really liking what I am seeing. My team
is going to re-design some automation projects, and we were going to use
Python as our programming language. One of the things we would like to do,
since we are all new to the language, is to define a set of guidelines and
best practices as our coding standards.

Does anyone know where I can get some information about what the community
is doing? Are there any well defined guidelines established?

Thanks,

--
Isaac Rodriguez
SWE Autodesk.
========================================
There are 10 types of people.
Those who undertand binary, and those who don't
 
T

Terry Reedy

Isaac Rodriguez said:
Does anyone know where I can get some information about what
the community is doing? Are there any well defined guidelines
established?

Besides PEP8, there is also the library code itself. When reading that
though, keep in mind that different modules were written by different
people at different times. Some were written before PEP8.

TJR
]
 
S

Sylvain Thenault

[Isaac Rodriguez wrote]
Hi,

I am fairily new to Python, but I am really liking what I am seeing. My team
is going to re-design some automation projects, and we were going to use
Python as our programming language. One of the things we would like to do,
since we are all new to the language, is to define a set of guidelines and
best practices as our coding standards.

Does anyone know where I can get some information about what the community
is doing? Are there any well defined guidelines established?

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

and you may also be interested by a tool such as pylint[1] which help to
enforce coding standards on your code base. Most of the styles suggested
in pep 8 are checked by pylint, using its default configuration.

[1] http://www.logilab.org/projects/pylint/
 

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

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top