Calling private base methods

Isaac Rodriguez isaac.rodriguez at comcast.net
Wed Apr 18 09:01:10 EDT 2007


> After all, that's what duck-typing is about. There is no official
> interface declaration, just an implicit protocol. And "private" methods
> or members are part of that protocol as well.


I don't think so. Duck-typing is about implementing the expected
public interface, and has nothing to do with accessing private members
of a class, nor overriding those members.

- Isaac.




More information about the Python-list mailing list