[Python-ideas] "else if" as equivalent for "elif"

Ian Kelly ian.g.kelly at gmail.com
Wed Oct 21 19:57:36 CEST 2015


Parse the sequence "else if" equivalently to "elif".

This would be 100% backward compatible. It wouldn't require adding any
new keywords to the language. It shouldn't be burdensome to maintain,
since "elif" only appears in one place in the grammar. And it solves a
minor readability complaint.

Thoughts?


More information about the Python-ideas mailing list