inheritance

Yagnesh Raghava Yakkala yagnesh at live.com
Thu Apr 5 13:50:00 EDT 2012


Hello Ian,

Yagnesh Raghava Yakkala <yagnesh at live.com> writes:

> Hello Ian,
>
> Ian Kelly <ian.g.kelly at gmail.com> writes:

[snipped 21 lines]

>
>>you will have
>> to pass the instance in explicitly as the self argument.  For example:
>
>> B.foo(x)  # calls B.foo directly with instance x

After follow up, I see one problem(can i say that?) with this. With python
overwriting methods of super class(es), one need to keep track of all the
methods ever defined in the super class(es). do everybody do a check before
writing a new method for existing method with the same name.?

-- 
YYR




More information about the Python-list mailing list