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 "<pyshell#108>", 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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4