[Python-Dev] Interning string subtype instances
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Feb 14 01:57:42 CET 2007
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
More information about the Python-Dev
mailing list