mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
PyNumber_Coerce() returns an int, not a PyObject *.
This commit is contained in:
parent
3764b6b67e
commit
c0e6c5beb2
1 changed files with 1 additions and 1 deletions
|
@ -1742,7 +1742,7 @@ it. This is the equivalent of the Python expression \samp{\var{o1} |=
|
||||||
\var{o2}}.
|
\var{o2}}.
|
||||||
\end{cfuncdesc}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
\begin{cfuncdesc}{PyObject*}{PyNumber_Coerce}{PyObject **p1, PyObject **p2}
|
\begin{cfuncdesc}{int}{PyNumber_Coerce}{PyObject **p1, PyObject **p2}
|
||||||
This function takes the addresses of two variables of type
|
This function takes the addresses of two variables of type
|
||||||
\ctype{PyObject*}. If the objects pointed to by \code{*\var{p1}} and
|
\ctype{PyObject*}. If the objects pointed to by \code{*\var{p1}} and
|
||||||
\code{*\var{p2}} have the same type, increment their reference count
|
\code{*\var{p2}} have the same type, increment their reference count
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue