[Python-Dev] A proposal has surfaced on comp.lang.python
toredefine "is"
Phillip J. Eby
pje at telecommunity.com
Wed Mar 17 20:39:34 EST 2004
At 07:46 PM 3/17/04 -0500, Andrew Koenig wrote:
>My own concern is that if someone writes expressions such as "x is 0" by
>mistake, the resulting program might always work on one implementation but
>fail on another.
In theory, the compiler could consider it an error for an 'is' expression
to have a constant on either side. That would be preferable to redefining
'is'.
More information about the Python-Dev
mailing list