mirror of
https://github.com/python/cpython.git
synced 2025-11-20 19:06:50 +00:00
Issue #25432: Explain isinstance behaviour when type is a tuple.
This commit is contained in:
parent
df2660e430
commit
68b6874f59
1 changed files with 4 additions and 4 deletions
|
|
@ -702,10 +702,10 @@ are always available. They are listed here in alphabetical order.
|
||||||
Return true if the *object* argument is an instance of the *classinfo*
|
Return true if the *object* argument is an instance of the *classinfo*
|
||||||
argument, or of a (direct, indirect or :term:`virtual <abstract base
|
argument, or of a (direct, indirect or :term:`virtual <abstract base
|
||||||
class>`) subclass thereof. If *object* is not
|
class>`) subclass thereof. If *object* is not
|
||||||
an object of the given type, the function always returns false. If
|
an object of the given type, the function always returns false.
|
||||||
*classinfo* is not a class (type object), it may be a tuple of type objects,
|
If *classinfo* is a tuple of type objects (or recursively, other such
|
||||||
or may recursively contain other such tuples (other sequence types are not
|
tuples), return true if *object* is an instance of any of the types.
|
||||||
accepted). If *classinfo* is not a type or tuple of types and such tuples,
|
If *classinfo* is not a type or tuple of types and such tuples,
|
||||||
a :exc:`TypeError` exception is raised.
|
a :exc:`TypeError` exception is raised.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue