Yet Another PEP: Interface Adapter Mechanism __adapt__

Clark C. Evans cce at clarkevans.com
Sun Mar 25 22:11:32 EST 2001


On Mon, 26 Mar 2001, Alex Shindich wrote:
> It sounds like your PEP suggests adding Strategy pattern
> behavior to all Python objects.

I'm suggesting a bi-directional adapter pattern.  IMHO,
It has nothing to do with the strategy pattern.   Did you
read the proposal?  Evidently my explanation failed, hunh?

> Another way of looking at your PEP is to say that you are 
> asking for Python Java-like interfaces.

No, actually there are other PEPs that do that.

;) Clark





More information about the Python-list mailing list