[Python-Dev] redefining is

Neil Schemenauer nas-python at python.ca
Fri Mar 19 15:04:30 EST 2004


On Fri, Mar 19, 2004 at 01:03:24PM -0500, Andrew Koenig wrote:
> The thing is that some people expect expressions such as
> 
> 	"Hello" is "Hello"
> 
> to yield True under all circumstances, and they don't.

Is that really the case or do they use 'is' because they think that
it will make their program go faster?  I would expect that novice
users would envision that statement creating two strings.

  Neil



More information about the Python-Dev mailing list