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

Andrew Koenig ark at acm.org
Wed Mar 17 18:31:15 EST 2004


> At 06:17 PM 3/17/04 -0500, Andrew Koenig wrote:
> >(I'm partly expecting a response of
> >"It's not Pythonic," but I don't actually know why not).
> 
> Three reasons why not:
> 
> Simple is better than complex.
> In the face of ambiguity, refuse the temptation to guess.
> If the implementation is hard to explain, it's a bad idea.

And a reason on the other side:

Don't expose the implementation to users needlessly.

This kind of implementation-defined behavior makes me nervous, because it
makes it easy to write programs with bugs that no amount of testing can ever
reveal.





More information about the Python-Dev mailing list