[Python-Dev] A proposal has surfaced on comp.lang.python toredefine "is"

Barry Scott barry at barrys-emacs.org
Thu Mar 18 16:28:50 EST 2004


Since this is not a reasonable semantic change we are left we warning
users about misuse.

Are there a number of cases of misuse that python could raise an exception
under? What would pychecker look for? Are they the same question?

Barry

At 18-03-2004 01:00, Guido van Rossum 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.
>
>I'd rather make this PyChecker's job than redefine 'is'.
>
>--Guido van Rossum (home page: http://www.python.org/~guido/)
>
>_______________________________________________
>Python-Dev mailing list
>Python-Dev at python.org
>http://mail.python.org/mailman/listinfo/python-dev
>Unsubscribe: 
>http://mail.python.org/mailman/options/python-dev/nospam%40barrys-emacs.org





More information about the Python-Dev mailing list