allowing braces around suites

Roel Schroeven rschroev_nospam_ml at
Sat Aug 28 09:47:13 CEST 2004

Kjetil Torgrim Homme wrote:
> [Isaac To]:
>>  When Python is concerned and Emacs is not, Python only sees there
>>  is indentation, and only indentation, to define the suites.  And
>>  it is also what people will perceive when they stare at the code.
>>  There is nothing to be inconsistent with it.
> how long do you have to stare before spotting the bug?

Just the time needed to read the code.

>     db.update_name(person)
>     if is_student(person):
>         db.update_courses(person)
>         db.commit()
> only students have their names updated.  I wonder why.

No offense, but I wonder why you have a problem with this code. IMO the 
indentation makes perfectly clear what's happening.

"Codito ergo sum"
Roel Schroeven

More information about the Python-list mailing list