]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
RFE #1670167: fix in isinstance() docs.
authorGeorg Brandl <georg@python.org>
Fri, 16 Mar 2007 08:33:51 +0000 (08:33 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 16 Mar 2007 08:33:51 +0000 (08:33 +0000)
 (backport from rev. 54409)

Doc/lib/libfuncs.tex

index 26bffcca0ca9d35bef94fd4a1b9a6e1bd4b9cea8..84f56d873a1d2233b2b0ba2560d8337f252000e7 100644 (file)
@@ -548,8 +548,9 @@ class C:
 \begin{funcdesc}{isinstance}{object, classinfo}
   Return true if the \var{object} argument is an instance of the
   \var{classinfo} argument, or of a (direct or indirect) subclass
-  thereof.  Also return true if \var{classinfo} is a type object and
-  \var{object} is an object of that type.  If \var{object} is not a
+  thereof.  Also return true if \var{classinfo} is a type object
+  (new-style class) and \var{object} is an object of that type or of a
+  (direct or indirect) subclass thereof.  If \var{object} is not a
   class instance or an object of the given type, the function always
   returns false.  If \var{classinfo} is neither a class object nor a
   type object, it may be a tuple of class or type objects, or may