summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-03-16 08:33:47 (GMT)
committerGeorg Brandl <georg@python.org>2007-03-16 08:33:47 (GMT)
commit6ab8452036beead2b74d38564162b291f2db643c (patch)
tree0c0bdae553efcae03bd2f1413d444b85ad6d0aac
parent5a80ff6111ea63ddf92ccbb25d1e5bcb90ff8970 (diff)
downloadcpython-6ab8452036beead2b74d38564162b291f2db643c.zip
cpython-6ab8452036beead2b74d38564162b291f2db643c.tar.gz
cpython-6ab8452036beead2b74d38564162b291f2db643c.tar.bz2
RFE #1670167: fix in isinstance() docs.
-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 c38e9fc..02d07a9 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -567,8 +567,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