On Mon, 2003-04-14 at 17:41, Paul Prescod wrote: > Yes, now that I know to try it, gc.collect() would have fixed the problem. > > But I'm not sure where I would have learned to do so. The documentation > for __del__ is out of date. > > * http://www.python.org/doc/2.3a2/ref/customization.html > > The documentation lists a variety of reasons that __del__ might not get > called (it doesn't claim to be exhaustive but it does list some cases > that I consider pretty obscure). It doesn't list nested recursive functions. The first one on the list is "circular references between objects." (Now that should be "among" objects, but that's not your complaint.) Nested recursive functions are an example of data structure involving circular references. Jeremy
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