Problem subclassing tuple

John Wilson tug at wilson.co.uk
Tue Apr 29 12:27:10 EDT 2003


----- Original Message ----- 
From: <sismex01 at hebmex.com>
To: <python-list at python.org>
Sent: Tuesday, April 29, 2003 5:16 PM
Subject: RE: Problem subclassing tuple


[snip]

> Most prob'ly you've already grasped it; the problem with
> the current implementation is that many internal classes
> don't "allow" subclassing, because the interpreter's
> internal mechanics access the C code for those classes
> (and subclasses), so your Python code doesn't get called.
>
> Bummer, really. :-/

No doubt this will be fixed in the future. I'll just create a class which
delegates the calls I need to support.

Many thanks for your help - at least I know it's not my brain softening :-))

John Wilson
The Wilson Partnership
http://www.wilson.co.uk






More information about the Python-list mailing list