Python indentation deters newbies?
peter at engcorp.com
Mon Aug 16 06:48:10 CEST 2004
Dennis Lee Bieber wrote:
> Missed one variant <G>... Since the brackets are, in my mind,
> noise, I prefer to keep /them/ aligned (easiest means of drawing lines
> on a listing...
> if (condition)
Missed another! (The best! ;-)
After all, the braces are basically part of the blocks, so they
really should be indented the same as the statements in the
blocks. Furthermore this way it's easier to scan down to find
the else or subsequent code. Basically, this way the braces
don't really get in the way at all, except for using up some
More information about the Python-list