Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Coding Standards (and Best Practices)

1 view
Skip to first unread message

Isaac Rodriguez

unread,
Apr 26, 2005, 2:04:45 PM4/26/05
to
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


Trent Mick

unread,
Apr 26, 2005, 2:02:33 PM4/26/05
to Isaac Rodriguez, pytho...@python.org
[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

--
Trent Mick
Tre...@ActiveState.com

Jp Calderone

unread,
Apr 26, 2005, 2:08:20 PM4/26/05
to pytho...@python.org
On Tue, 26 Apr 2005 14:04:45 -0400, Isaac Rodriguez <discussio...@autodesk.com> 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?
>

One such document:

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

Jp

Terry Reedy

unread,
Apr 26, 2005, 7:15:31 PM4/26/05
to pytho...@python.org

"Isaac Rodriguez" <discussio...@autodesk.com> wrote in message
news:11145386...@hqnntp01.autodesk.com...

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

Sylvain Thenault

unread,
Apr 27, 2005, 6:04:13 AM4/27/05
to

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/

--
Sylvain Thénault LOGILAB, Paris (France).

http://www.logilab.com http://www.logilab.fr http://www.logilab.org


0 new messages