General q. `bout subclassing

Thomas Weholt thomas at bibsyst.no
Tue Nov 2 14:30:41 CET 1999


Hi,

Simple one :

How do I subclass fundamental stuff like lists etc,

tried something like :

> >>> class my_list([]):
> ...     a = ''
> ...
> Traceback (innermost last):
>   File "", line 1, in ?
> TypeError: base is not a class object
> >>>
>

Huh ??

Thomas Weholt





More information about the Python-list mailing list