mirror of https://github.com/python/cpython.git
Minor grammar re-wording
This commit is contained in:
parent
a5cd18275e
commit
b3437c9f95
|
@ -1772,7 +1772,7 @@ The following methods are used to override the default behavior of the
|
||||||
|
|
||||||
In particular, the metaclass :class:`abc.ABCMeta` implements these methods in
|
In particular, the metaclass :class:`abc.ABCMeta` implements these methods in
|
||||||
order to allow the addition of Abstract Base Classes (ABCs) as "virtual base
|
order to allow the addition of Abstract Base Classes (ABCs) as "virtual base
|
||||||
classes" to any class or type (including built-in types), and including to other
|
classes" to any class or type (including built-in types), including other
|
||||||
ABCs.
|
ABCs.
|
||||||
|
|
||||||
.. method:: class.__instancecheck__(self, instance)
|
.. method:: class.__instancecheck__(self, instance)
|
||||||
|
@ -1791,7 +1791,7 @@ ABCs.
|
||||||
|
|
||||||
Note that these methods are looked up on the type (metaclass) of a class. They
|
Note that these methods are looked up on the type (metaclass) of a class. They
|
||||||
cannot be defined as class methods in the actual class. This is consistent with
|
cannot be defined as class methods in the actual class. This is consistent with
|
||||||
the lookup of special methods that are called on instances, only that in this
|
the lookup of special methods that are called on instances, only in this
|
||||||
case the instance is itself a class.
|
case the instance is itself a class.
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
|
Loading…
Reference in New Issue