[Python-Dev] switch-based programming in Python

Greg Ewing greg@cosc.canterbury.ac.nz
Tue, 13 Nov 2001 13:46:31 +1300 (NZDT)


Paul Svensson <paul@svensson.org>:

> On Fri, 9 Nov 2001, Donald Beaudry wrote:

> >    when EXPR:
> >        in CONSTANT_TUPLE:
> >            [suite]
> >    else:
> >         [suite]

> you're absolutely right on the indentation of the "else".

Really? To me, the else is just another branch, and should
be on the same level as all the others.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+