diff options
author | Georg Brandl <georg@python.org> | 2007-03-16 08:33:51 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-03-16 08:33:51 (GMT) |
commit | d20046622a3e5c687d03913e0632ca1ed690e1b6 (patch) | |
tree | 8a99bbd8a6d19292a8aefd6f7768f112544d72b1 | |
parent | 7d9ac783840319a9e83d9b2aef679c4609a48e3f (diff) | |
download | cpython-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.tex | 5 |
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 |