summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-03-16 08:33:51 (GMT)
committerGeorg Brandl <georg@python.org>2007-03-16 08:33:51 (GMT)
commitd20046622a3e5c687d03913e0632ca1ed690e1b6 (patch)
tree8a99bbd8a6d19292a8aefd6f7768f112544d72b1
parent7d9ac783840319a9e83d9b2aef679c4609a48e3f (diff)
downloadcpython-d20046622a3e5c687d03913e0632ca1ed690e1b6.zip
cpython-d20046622a3e5c687d03913e0632ca1ed690e1b6.tar.gz
cpython-d20046622a3e5c687d03913e0632ca1ed690e1b6.tar.bz2
RFE #1670167: fix in isinstance() docs.
(backport from rev. 54409)
-rw-r--r--Doc/lib/libfuncs.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index 26bffcc..84f56d8 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -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