Commit 908f9f1f authored by Fred Drake's avatar Fred Drake

PyNumber_Coerce() returns an int, not a PyObject *.

parent 31d209d6
...@@ -1742,7 +1742,7 @@ it. This is the equivalent of the Python expression \samp{\var{o1} |= ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment