| Store | Cart

Python style guidelines

From: Richie Hindle <ric...@entrian.com>
Fri, 12 Mar 2004 09:36:32 +0000
[Will]
> I think nothing is more evil about coding standards than indentation. 

The first time I hacked the sources to Python itself I was astonished to
find that the coding standard for the C code specifies 8-space indents and
a line limit of 80 characters.  How could anyone write code in such a
restricted format?  Then I looked at the code and realised what a
wonderful effect those rules have.  The code is simple, clearly written,
well organised and easy to read and understand.  And I believe the code I
contributed is higher quality as a result of those restrictions.  Had I
followed my own (loose) standard of 4-character indents and 100-character
lines, the code would have been harder to read - it would have had deeper
nesting and more complicated expressions.

-- 
Richie Hindle
richie at entrian.com

Recent Messages in this Thread
beli...@aol.com Mar 10, 2004 07:12 pm
Skip Montanaro Mar 10, 2004 10:09 pm
Will Berry Mar 11, 2004 10:39 pm
Richie Hindle Mar 12, 2004 09:36 am
Jorgen Grahn Mar 12, 2004 07:29 pm
MetalOne Mar 13, 2004 07:08 am
Heather Coppersmith Mar 13, 2004 01:22 pm
MetalOne Mar 13, 2004 09:28 pm
Andy Salnikov Mar 15, 2004 09:34 pm
Rocco Moretti Mar 17, 2004 07:22 pm
wmwd...@sneakemail.com ) (Greg Ewing (using news.cis.dfn.de) Mar 15, 2004 12:39 am
Josef Meile Mar 11, 2004 09:48 am
Peter Otten Mar 11, 2004 11:18 am
Heather Coppersmith Mar 11, 2004 11:34 am
Josef Meile Mar 11, 2004 03:39 pm
Peter Hansen Mar 11, 2004 03:41 pm
Donn Cave Mar 11, 2004 04:49 pm
John Roth Mar 11, 2004 05:16 pm
wmwd...@sneakemail.com ) (Greg Ewing (using news.cis.dfn.de) Mar 12, 2004 03:23 am
Mel Wilson Mar 12, 2004 03:57 pm
Aahz Mar 11, 2004 04:27 pm
beli...@aol.com Mar 11, 2004 12:52 pm
Michael Hudson Mar 11, 2004 01:41 pm
Messages in this thread