On Wednesday, May 10, 2006, at 08:26AM, Bill Janssen <[EMAIL PROTECTED]> 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 _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com