Subclass of array

Thomas Heller theller at python.net
Mon Jun 24 15:23:03 EDT 2002


"Bengt Richter" <bokr at oz.net> wrote in message news:af7kl3$743$0 at 216.39.172.122...
> 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 ;-).
>
In 2.2.1, you cannot use derive subclasses of array.
In 2.3 (current CVS version), you can.

Thomas





More information about the Python-list mailing list