mirror of
https://github.com/python/cpython.git
synced 2025-10-15 11:22:18 +00:00
parent
7d9ac78384
commit
d20046622a
1 changed files with 3 additions and 2 deletions
|
@ -548,8 +548,9 @@ class C:
|
||||||
\begin{funcdesc}{isinstance}{object, classinfo}
|
\begin{funcdesc}{isinstance}{object, classinfo}
|
||||||
Return true if the \var{object} argument is an instance of the
|
Return true if the \var{object} argument is an instance of the
|
||||||
\var{classinfo} argument, or of a (direct or indirect) subclass
|
\var{classinfo} argument, or of a (direct or indirect) subclass
|
||||||
thereof. Also return true if \var{classinfo} is a type object and
|
thereof. Also return true if \var{classinfo} is a type object
|
||||||
\var{object} is an object of that type. If \var{object} is not a
|
(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
|
class instance or an object of the given type, the function always
|
||||||
returns false. If \var{classinfo} is neither a class object nor a
|
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
|
type object, it may be a tuple of class or type objects, or may
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue