PyObject *o) |
1
if the object o provides numeric protocols,
and false otherwise. This function always succeeds.
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2, PyObject *o3) |
PyObject *o) |
PyObject *o) |
PyObject *o) |
PyObject *o) |
PyObject *o1, PyObject *o2) |
<
o2".
PyObject *o1, PyObject *o2) |
>
o2".
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2, PyObject *o3) |
PyObject *o1, PyObject *o2) |
<=
o2".
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject *o1, PyObject *o2) |
PyObject **p1, PyObject **p2) |
*p1
and *p2
have the same type, increment their reference
count and return 0
(success). If the objects can be converted
to a common numeric type, replace *p1
and *p2
by their
converted value (with 'new' reference counts), and return 0
.
If no conversion is possible, or if some other error occurs, return
-1
(failure) and don't increment the reference counts. The
call PyNumber_Coerce(&o1, &o2)
is equivalent to the Python
statement "o1, o2 = coerce(o1, o2)".
PyObject *o) |
PyObject *o) |
PyObject *o) |
PyObject *o) |
PyObject *o, PyObject *exc) |
PyObject *o) |
See About this document... for information on suggesting changes.