[Python-Dev] d.get_key(key) -> key?

Martin v. Loewis martin@v.loewis.de
06 Jun 2002 08:36:41 +0200

Guido van Rossum <guido@python.org> 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.