24 May
2004
24 May
'04
5:14 p.m.
Hello Raymond, On Mon, May 24, 2004 at 07:13:44PM -0400, Raymond Hettinger wrote:
>>> del a # remove the one reference >>> gc.collect() # make garbage collection run right away 0 >>> d['primary'] = a # the entry was automatically removed
Traceback (most recent call last): File "
", line 1, in -toplevel- d['primary'] = a # does not create a reference NameError: name 'a' is not defined
Oups, wrong line and hence wrong exception for what you're trying to show. A bientot, Armin