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

Greg Ewing greg@cosc.canterbury.ac.nz
Fri, 07 Jun 2002 16:22:25 +1200 (NZST)


> So let's expose a function that cleans out unused strings from the
> interned dict.  Long-running apps can decide when to call this.

Would it do any harm to call this automatically from
the garbage collector?

I suppose it should be exposed as well, in case you
want it but have GC turned off -- but in the normal
case you shouldn't have to do anything special to
get it.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+