Subclassing builtin types

Alex Martelli aleaxit at yahoo.com
Sun Mar 4 12:56:45 EST 2001


"Daniel Klein" <danielk at aracnet.com> wrote in message
news:i6u4atslg4euv732pvaujk6u036kemcidf at 4ax.com...
> One of the classes I have to write  is merely a wrapper around a 'list'
object.

That's what UserList is for -- a class that wraps the list builtin object,
so you can inherit and override whatever you need.



Alex






More information about the Python-list mailing list