Thoughts from a newbie

Gerhard Häring gerhard.haering at gmx.de
Fri Dec 13 21:38:56 EST 2002


* Steve <stevesusenet at yahoo.com> [2002-12-13 13:30 -0800]:
> There are two coding habits that I see often that makes code harder to
> understand:
> 
> 1. excessive nesting
> 2. lines longer then 80 chars 

If you want to forbid these, it makes producing harder to read
Python code just a little bit more difficult:

#v+
def sum(x):
 n                                                              =                                                       0
 for \
                        i \
   in                                                           \
   range \
                                        (
    x):
            n                                   += i
 return                                \
                                                                n
#v-

*eg*

-- Gerhard




More information about the Python-list mailing list