1
if the object o provides numeric protocols,
and false otherwise. This function always succeeds.
<
o2".
>
o2".
<=
o2".
>=
o2".
*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)".
See About this document... for information on suggesting changes.