Inheritance from builtin list and override of methods.
fredrik at pythonware.com
Mon Nov 27 10:50:33 CET 2006
Michalis Giannakidis wrote:
>> in general, methods on C objects are implemented in terms of operations
>> on the internal data structures, not in terms of a subset of the methods
>> already provided by the object.
> But what is the reason that the assignment
> l = 6
> call my function, but
"obj[index] = value" maps to "obj.__setitem__(index, value)". reading
the documentation might help; start here:
More information about the Python-list