Is it new style or just lack of style?

Markus Schaber markus at schabi.de
Thu Aug 9 17:34:49 EDT 2001


Hi,

Roman Suzi <rnd at onego.ru> schrub:

> More and more I am starting to see people adding extra
> blanks in ( ).
> [...]
> Any ideas?

I usually use (a, b, c) - means spaces only after the commas.

In C / Java, I use spaces after if (), while () etc., but don't put one 
after a function().

Inside the parenthesis, I sometimes add some spaces when there are 
multiple levels of ()s:

if ( (a>b) && (b>c) )
if (( (a>b) && (b>c) ) || (something != else))

I don't use any rules for this - I just try to keep it readable in my 
own eyes :-)

markus
-- 
Defend democrathy and freedom!



More information about the Python-list mailing list