On Wed, 10 Oct 2001 13:27:53 -0400 Matt Wilson <msw@redhat.com> wrote: > Python 2.2a4: > > class myList(type([])): > def __del__(self): > print "list dealloced" > > list = myList() > del list > > never prints "list dealloced". Is this supposed to work? I don't know, but it does work if you *don't* subclass from type([]). But you may already know that. Neither PEP 252 or 253 mention specifics on __del__, so maybe it's a bug? -Michel
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