[Python-3000] pep 3119 question (ABC)
Guido van Rossum
guido at python.org
Thu Jan 10 20:36:38 CET 2008
On Jan 10, 2008 11:20 AM, Neal Becker <ndbecker2 at gmail.com> wrote:
> On reading this pep, I was not clear on one issue.
> In some interface proposals (zope?), as well as in c++0x concept proposal,
> there is a mechanism to specify how to adapt a given class to satisfy given
> interface requirements.
> For example, suppose container ABC requires a 'size'. Suppose I have a
> container-like class C, but it's size is called 'len'. The idea is to be
> able to specify, _outside of the class C_, that the size requirement is
> met, and it's called 'len'.
> Does pep 3119 offer that functionality?
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000