mirror of
https://github.com/python/cpython.git
synced 2024-11-26 11:24:40 +08:00
Minor markup adjustments.
This commit is contained in:
parent
6db771871e
commit
12dd7b12c6
@ -318,13 +318,12 @@ determination.
|
||||
When \var{o} is non-\NULL, returns a type object corresponding to
|
||||
the object type of object \var{o}. On failure, raises
|
||||
\exception{SystemError} and returns \NULL. This is equivalent to
|
||||
the Python expression \code{type(\var{o})}.
|
||||
the Python expression \code{type(\var{o})}.\bifuncindex{type}
|
||||
This function increments the reference count of the return value.
|
||||
There's really no reason to use this function instead of the
|
||||
common expression \code{\var{o}->ob_type}, which returns a pointer
|
||||
of type \code{PyTypeObject *}, except when the incremented reference
|
||||
of type \ctype{PyTypeObject*}, except when the incremented reference
|
||||
count is needed.
|
||||
\bifuncindex{type}
|
||||
\end{cfuncdesc}
|
||||
|
||||
\begin{cfuncdesc}{int}{PyObject_TypeCheck}{PyObject *o, PyTypeObject *type}
|
||||
|
Loading…
Reference in New Issue
Block a user