Skip to content
Prev Previous commit
Next Next commit
Fix API leak
  • Loading branch information
brandtbucher committed Oct 27, 2021
commit 99055496e84a44e7e2f3943c5306f023807f955f
4 changes: 0 additions & 4 deletions Include/abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,6 @@ PyAPI_FUNC(PyObject *) PyNumber_InPlaceOr(PyObject *o1, PyObject *o2);
If n is not an int object, it is converted with PyNumber_Index first. */
PyAPI_FUNC(PyObject *) PyNumber_ToBase(PyObject *n, int base);

PyAPI_FUNC(PyObject *) _PyNumber_Op(PyObject *o1, PyObject *o2, unsigned op);

PyAPI_FUNC(PyObject *) _PyNumber_InPlaceOp(PyObject *o1, PyObject *o2, unsigned op);


/* === Sequence protocol ================================================ */

Expand Down
3 changes: 3 additions & 0 deletions Include/internal/pycore_abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ _PyIndex_Check(PyObject *obj)
return (tp_as_number != NULL && tp_as_number->nb_index != NULL);
}

PyObject *_PyNumber_Op(PyObject *o1, PyObject *o2, unsigned op);
PyObject *_PyNumber_InPlaceOp(PyObject *o1, PyObject *o2, unsigned op);

#ifdef __cplusplus
}
#endif
Expand Down