[Python-Dev] del and subclassed types (original) (raw)
Michel Pelletier michel@zope.com
Wed, 10 Oct 2001 17:33:15 -0400
- Previous message: [Python-Dev] __del__ and subclassed types
- Next message: [Python-Dev] __del__ and subclassed types
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] __del__ and subclassed types
- Next message: [Python-Dev] __del__ and subclassed types
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]