Why no 'elif' in try/except?
Boyd Roberts
boyd at insultant.net
Mon Jun 4 14:03:21 EDT 2001
"Marcin 'Qrczak' Kowalczyk" <qrczak at knm.org.pl> a écrit dans le message news: slrn.pl.9hnbs9.4l5.qrczak at qrnik.zagroda...
> I don't understand only one thing. Why it is spelled 'elif' and not
> 'else if'?
may have been influenced by 'elif' from the Bourne shell as well as the fact that it's
simpler to parse, given it's one token and not two (less look ahead).
More information about the Python-list
mailing list