[Python-3000] PEP 3100 Comments
Ronald Oussoren
ronaldoussoren at mac.com
Wed May 10 11:44:17 CEST 2006
On Wednesday, May 10, 2006, at 08:26AM, Bill Janssen <janssen at parc.com> wrote:
>> If I understand your proposal correctly, this approach doesn't do anything
>> beyond what Java does, and is inferior to already-available adaptation and
>> interface systems for today's Python.
>
>Inferior is in the eye of the beholder, I suppose. This is what
>Python 2.x already provides.
>
>> this approach doesn't do anything beyond what Java does
>
>Actually, it does. It lets you inherit behavior, as well as interfaces.
It only lets you inherit behaviour to new subclasses, as philip already noted you cannot add functionality to already existing classes. Both generic functions and adaptation systems like zope.interfaces allow you to state that an existing class implements one of your own interfaces without changes to the original class.
Ronald
More information about the Python-3000
mailing list