"Make lists subclassable"?

Norman Shelley Norman_Shelley-RRDN60 at email.sps.mot.com
Wed May 30 12:23:55 EDT 2001


It appears from this check in comment that one will be able to subclass
a Python list in some future revision.

Is this assumption true?
If so is is it slated for version 2.2 and how will it work?  (class
NewList(list): ...   ?)

Norman Shelley

 http://cvs.sf.net/cgi-bin/viewcvs.cgi/python/python/dist/src/Objects/listobject.c

...
Revision 2.92.6.3 / (download) / (as text) - annotate - [select for
diffs] , Fri May 4 17:12:53 2001 UTC (3 weeks, 4 days ago) by
gvanrossum
Branch: descr-branch
CVS Tags: before-call-reorg, after-call-reorg
Changes since 2.92.6.2: +20 -0 lines
Diff to previous 2.92.6.2 to a branchpoint 2.92

Make lists subclassable.  Add code that frees ob_item when empty.




More information about the Python-list mailing list