[Python-3000] Abilities / Interfaces

Guido van Rossum guido at python.org
Wed Nov 22 01:06:52 CET 2006


On 11/21/06, Nestor <nestornissen at gmail.com> wrote:
> Do these aproaches allow to do something like the
> java.util.RandomAccess interface that is just used as a marker?

Zope interfaces certainly do. I don't know about Phillip's
counter-proposal. With ABCs it would seem that one has to plan this
ahead of time (i.e., at class definition time), which isn't always
reasonable.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list