diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-10-28 07:14:56 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-10-28 07:14:56 (GMT) |
commit | 68b6874f59d80c41785a4d4a6874be89ad08fcd5 (patch) | |
tree | b3671b043e0055b2c2dd3168098078dcf33f319b /Doc/library/functions.rst | |
parent | df2660e430a416eb833123d2cb51647e5dcdf939 (diff) | |
download | cpython-68b6874f59d80c41785a4d4a6874be89ad08fcd5.zip cpython-68b6874f59d80c41785a4d4a6874be89ad08fcd5.tar.gz cpython-68b6874f59d80c41785a4d4a6874be89ad08fcd5.tar.bz2 |
Issue #25432: Explain isinstance behaviour when type is a tuple.
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r-- | Doc/library/functions.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 5377335..97c9f8d 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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* argument, or of a (direct, indirect or :term:`virtual <abstract base class>`) subclass thereof. If *object* is not - an object of the given type, the function always returns false. If - *classinfo* is not a class (type object), it may be a tuple of type objects, - or may recursively contain other such tuples (other sequence types are not - accepted). If *classinfo* is not a type or tuple of types and such tuples, + an object of the given type, the function always returns false. + If *classinfo* is a tuple of type objects (or recursively, other such + tuples), return true if *object* is an instance of any of the types. + If *classinfo* is not a type or tuple of types and such tuples, a :exc:`TypeError` exception is raised. |