diff options
author | Éric Araujo <merwok@netwok.org> | 2011-08-19 00:17:03 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-08-19 00:17:03 (GMT) |
commit | e8b7eb07e1e911c7f692b25b4aa8021abb578fbe (patch) | |
tree | 314c0e65b27e3c0f5d5e5f2e3f7514a97abaf125 /Doc | |
parent | 543edbdab8e1853827a8c5bf9c226120a2472238 (diff) | |
download | cpython-e8b7eb07e1e911c7f692b25b4aa8021abb578fbe.zip cpython-e8b7eb07e1e911c7f692b25b4aa8021abb578fbe.tar.gz cpython-e8b7eb07e1e911c7f692b25b4aa8021abb578fbe.tar.bz2 |
Link isinstance/issubclass to the ABC glossary entry (#12256)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functions.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index edff106..3b6fdc3 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -624,7 +624,8 @@ are always available. They are listed here in alphabetical order. .. function:: isinstance(object, classinfo) Return true if the *object* argument is an instance of the *classinfo* - argument, or of a (direct or indirect) subclass thereof. If *object* is not + 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 @@ -634,7 +635,8 @@ are always available. They are listed here in alphabetical order. .. function:: issubclass(class, classinfo) - Return true if *class* is a subclass (direct or indirect) of *classinfo*. A + Return true if *class* is a subclass (direct, indirect or :term:`virtual + <abstract base class>`) of *classinfo*. A class is considered a subclass of itself. *classinfo* may be a tuple of class objects, in which case every entry in *classinfo* will be checked. In any other case, a :exc:`TypeError` exception is raised. |