Why no 'elif' in try/except?

D-Man dsh8290 at rit.edu
Fri Jun 8 18:16:44 EDT 2001


On Fri, Jun 08, 2001 at 04:12:56PM +0000, Marcin 'Qrczak' Kowalczyk wrote:
| Fri, 08 Jun 2001 14:11:36 +1200, Greg Ewing <greg at cosc.canterbury.ac.nz> pisze:
| Neither do I. What about consistency?

In that case, what about else on 'for' and 'while'?  Just being
pedantic..

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

if 0 :
    print "pigs can fly"
elsif  [whoa, why is this white?]
^H^H^Hif  [ahh, yellow, much better]

Who says syntax highlighting isn't useful?

-D





More information about the Python-list mailing list