[Python-Dev] d.get_key(key) -> key?
Martin v. Loewis
06 Jun 2002 08:36:41 +0200
Guido van Rossum <email@example.com> writes:
> An occasional run through the 'interned' dict (in stringobject.c)
> looking for strings with refcount 2 would do this. Maybe something
> for the gc module do handle as a service whenever it runs its
> last-generation collection?
This has the potential of breaking applications that remember the id()
of an interned string, instead of its value.