diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/api/abstract.tex | 11 | ||||
-rw-r--r-- | Doc/lib/libfuncs.tex | 12 |
2 files changed, 15 insertions, 8 deletions
diff --git a/Doc/api/abstract.tex b/Doc/api/abstract.tex index 1cf69dc..91c0944 100644 --- a/Doc/api/abstract.tex +++ b/Doc/api/abstract.tex @@ -205,10 +205,15 @@ determination. PyObject *cls} Returns \code{1} if the class \var{derived} is identical to or derived from the class \var{cls}, otherwise returns \code{0}. In - case of an error, returns \code{-1}. If either \var{derived} or - \var{cls} is not an actual class object, this function uses the - generic algorithm described above. + case of an error, returns \code{-1}. If \var{cls} + is a tuple, the check will be done against every entry in \var{cls}. + The result will be \code{1} when at least one of the checks returns + \code{1}, otherwise it will be \code{0}. If either \var{derived} or + \var{cls} is not an actual class object (or tuple), this function + uses the generic algorithm described above. \versionadded{2.1} + \versionchanged[Older versions of Python did not support a tuple + as the second argument]{2.3} \end{cfuncdesc} diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index fd9092d..4716dd2 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -550,11 +550,13 @@ def my_import(name): \versionchanged[Support for a tuple of type information was added]{2.2} \end{funcdesc} -\begin{funcdesc}{issubclass}{class1, class2} - Return true if \var{class1} is a subclass (direct or indirect) of - \var{class2}. A class is considered a subclass of itself. If - either argument is not a class object, a \exception{TypeError} - exception is raised. +\begin{funcdesc}{issubclass}{class, classinfo} + Return true if \var{class} is a subclass (direct or indirect) of + \var{classinfo}. A class is considered a subclass of itself. + \var{classinfo} may be a tuple of class objects, in which case every + entry in \var{classinfo} will be checked. In any other case, a + \exception{TypeError} exception is raised. + \versionchanged[Support for a tuple of type information was added]{2.3} \end{funcdesc} \begin{funcdesc}{iter}{o\optional{, sentinel}} |