We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc8102c commit 038e10cCopy full SHA for 038e10c
Doc/c-api/object.rst
@@ -433,7 +433,9 @@ Object Protocol
433
434
If *cls* has a :meth:`~type.__instancecheck__` method, it will be called to
435
determine the subclass status as described in :pep:`3119`. Otherwise, *inst*
436
- is an instance of *cls* if its class is a subclass of *cls*.
+ is an instance of *cls* if its class is a subclass of *cls*. If *inst* is
437
+ an instance of *cls*, this will return ``1`` and will not call
438
+ :meth:`~type.__instancecheck__`.
439
440
An instance *inst* can override what is considered its class by having a
441
:attr:`~object.__class__` attribute.
0 commit comments