[Python-ideas] ABCs : adding an implements alias ?

Guido van Rossum guido at python.org
Sat Feb 21 17:38:46 CET 2009

On Sat, Feb 21, 2009 at 6:40 AM, Tarek Ziadé <ziade.tarek at gmail.com> wrote:
> I am playing with ABCs and I don't find the usage of the built-in
> issubclass() natural to test wheter a class implements an ABC.
> I think it's just the name of the built-in, or maybe the fact that it
> is hidden in the mro. (or maybe because I have used zope.interfaces a
> lot).

Probably the latter. Please try getting used to it. Zope didn't choose
its API because it was the best but because in the days issubclass()
and isinstance() weren't overloadable.

 We have an API for this already, and it won't go away. No need to
create another one. Remember TOOWTDI.

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

More information about the Python-ideas mailing list