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

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


James J. Besemer <jb at cascade-sys.com>:
> 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
introducing
> 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.

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list