Why no 'elif' in try/except?
greg at cosc.canterbury.ac.nz
Fri Jun 8 04:15:09 CEST 2001
Marcin 'Qrczak' Kowalczyk wrote:
> 'else if' would mean exactly what 'elif' means today - it's still
> a special rule, but not an additional keyword.
Yes, it's unambiguous, although I'm not sure what
the implications would be for the parser the way
it currently works. Maybe I'll try to implement it
one day and find out!
If there isn't any difficulty, my guess is that
Guido simply didn't think of it at the time (or
when he did think of it, the time machine was
away for repairs).
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
More information about the Python-list