Subclass of array

Bengt Richter bokr at oz.net
Mon Jun 24 13:24:51 EDT 2002


On Mon, 24 Jun 2002 14:54:21 +0200, JB <jblazi at hotmail.com> wrote:

>Can I derive an own class from array? (I use 2.2.)

Good thought ;-) It doesn't look like it, but if it can be done, I'd like
to know too. You can make a class that wraps instead of inherits, though.
There are lots of ways to do that. See one limited way in another reply
of mine to you in the other thread (which I did because subclassing the
obvious way didn't work ;-).

Regards,
Bengt Richter



More information about the Python-list mailing list