[Python-Dev] Interning string subtype instances (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Feb 14 01:57:42 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 ]
Martin v. Löwis wrote:
OTOH, in an application that needs unique strings, you normally know what the scope is (i.e. where the strings come from, and when they aren't used anymore).
That's true -- if you know that all relevant strings have been interned using the appropriate method, you can just use 'is' to compare them.
-- Greg
- Previous message: [Python-Dev] Interning string subtype instances
- Next message: [Python-Dev] Interning string subtype instances
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]