Problem subclassing tuple
sismex01 at hebmex.com
sismex01 at hebmex.com
Tue Apr 29 12:16:03 EDT 2003
>
> I'm really quite interested in why this doesn't work. I *thought* I'd
> grasped the concept of the new style classes but this seems
> to demonstrate
> that I haven't!
>
> Thanks for the response.
>
> John Wilson
> The Wilson Partnership
> http://www.wilson.co.uk
>
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. :-/
-gus
More information about the Python-list
mailing list