This commit is contained in:
Andrew M. Kuchling 2008-01-04 02:21:40 +00:00
parent a684ab6aaa
commit d3d971a6c9
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ serves as an ABC support framework. It defines a metaclass
The ``ABCMeta`` class overrides ``__instancecheck__`` and
``__subclasscheck__`` and defines a ``register`` method. The
``register`` method takes one argument, which much be a class; after
``register`` method takes one argument, which must be a class; after
the call ``B.register(C)``, the call ``issubclass(C, B)`` will return
True, by virtue of ``B.__subclasscheck__(C)`` returning True.
Also, ``isinstance(x, B)`` is equivalent to ``issubclass(x.__class__,