For review: PEP 308 - If-then-else expression

Andrew Dalke adalke at
Mon Feb 10 06:14:48 CET 2003

James J. Besemer <jb at>:
> I think you and others exagerate the cost/danger of overloading "if".
> Overall, defining a new interpretation for "if", one that may be
> unambiguously discriminated in all cases arguably is better than
> a new keyword (which necessarily breaks old code).

And not having the change makes new Python code more likely
to work on older Python installations.

                    dalke at

More information about the Python-list mailing list