For review: PEP 308 - If-then-else expression
Andrew Dalke
adalke at mindspring.com
Tue Feb 11 14:15:09 EST 2003
Erik Max Francis:
> Obviously, but if you come to rely on the idiom, it's easy to forget
> that it doesn't work properly if x is false. As we've seen from Andrew
> Koenig's example of an _improper_ use of this construct in the standard
> library.
Though as others have pointed out as well, I've found improper use
of quite a few things in the library, and filed bug reports against them
and patches. Does that mean we need a new syntax for all of those?
No, I don't think so.
Andrew
dalke at dalkescientific.com
More information about the Python-list
mailing list