For instance, it could by default preserve a reference to the original object and use that for any further adaptation requests:
class Adapter(object):
def __init__(self, original):
self.original = original def __conform__(self, protocol):
return adapt(self.original, protocol)Does anyone else (particularly those with PEAK and Zope interface experience) think such a class would be beneficial in encouraging good practices?
Regards, Nick.
--
Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.skystorm.net
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
