]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Link isinstance/issubclass to the ABC glossary entry (#12256)
authorÉric Araujo <merwok@netwok.org>
Fri, 19 Aug 2011 00:17:03 +0000 (02:17 +0200)
committerÉric Araujo <merwok@netwok.org>
Fri, 19 Aug 2011 00:17:03 +0000 (02:17 +0200)
Doc/library/functions.rst

index edff106d08160fee926a390886d389dba697875c..3b6fdc370fc4369707179ddcfd8ce0836d1869f8 100644 (file)
@@ -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.