API: int PyLong_Sign(PyObject *obj, int *sign)
Retrieve the sign of integer object obj (0, -1 or +1 for zero,
negative or positive integer, respectively) in a variable sign.
Return 0 on success, else -1 with an exception set. This function
always succeeds if obj is a :c:type:PyLongObject or its subtype.
PR: python/cpython#116561
I would like to propose adding the API directly to the limited API, what do you think?
API:
int PyLong_Sign(PyObject *obj, int *sign)Retrieve the sign of integer object obj (
0,-1or+1for zero,negative or positive integer, respectively) in a variable sign.
Return
0on success, else-1with an exception set. This functionalways succeeds if obj is a :c:type:
PyLongObjector its subtype.PR: python/cpython#116561
I would like to propose adding the API directly to the limited API, what do you think?