[Python-Dev] Interning string subtype instances

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Feb 15 02:39:04 CET 2007


Larry Hastings wrote:

> If I understand your question correctly, you're saying "why doesn't 
> string comparison take advantage of interned strings?"

No, I understand that it takes advantage of it when the
strings are equal. I was wondering about the case where
they're not equal. But as has been pointed out, unless
you're very unlucky, you find out pretty fast when they're
not equal.

So I'm happy now.

--
Greg


More information about the Python-Dev mailing list