[Python-Dev] Weak references

Fred L. Drake, Jr. fdrake@acm.org
Sun, 5 Nov 2000 22:06:29 -0500 (EST)

Guido van Rossum writes:
 > Yes, definitely.  Weak dicts are sometimes needed for situations where
 > a regular dict would keep objects alive forever.  E.g. we were made
 > aware of a "leak" in JPython that could only be fixed with weak dicts:
 > the Swing wrapper code has a global dict mapping widgets to callback

  That's a perfect example.  I've started working on some text
describing the motivation; hopefully I'll have that fleshed out and
checked in later this week.


Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Digital Creations