Why no 'elif' in try/except?

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Fri Jun 8 12:12:56 EDT 2001


Fri, 08 Jun 2001 14:11:36 +1200, Greg Ewing <greg at cosc.canterbury.ac.nz> pisze:

> The convenience is worth the extra complexity in this case, because
> it's quite common to have long sequences of nested if-elses, and
> without it you'd quickly run out of screen width.
> 
> But I can't imagine long sequences of nested try-except-else-ifs
> turning up very often...

Neither do I. What about consistency?

(I would still prefer 'else if' to 'elif'. Some languages use 'elsif'
and I can't remember which is where.)

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list