Inheritance from builtin list and override of methods.
OKB (not okblacke)
brenNOSPAMbarn at NObrenSPAMbarn.net
Mon Nov 27 20:14:10 CET 2006
Duncan Booth wrote:
>> And is there a mechanism in Python that will allow me to override
>> the operators of a class, for all its occurrences, even the ones
>> implemented on C built-in objects?
For what it's worth, which is undoubtedly nothing, this is
something that I think needs to change. All this talk about new-style
classes and class-type unification is empty words if you can't override
anything on any type without having to know whether it's written in C or
--OKB (not okblacke)
"Do not follow where the path may lead. Go, instead, where there is
no path, and leave a trail."
More information about the Python-list