[Python-Dev] Interning string subtype instances (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Feb 15 02:39:04 CET 2007
- Previous message: [Python-Dev] Interning string subtype instances
- Next message: [Python-Dev] Interning string subtype instances
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Interning string subtype instances
- Next message: [Python-Dev] Interning string subtype instances
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]