PEP 510: adjust API of functions removing specialized code
This commit is contained in:
parent
3910522c12
commit
336ca41c7f
|
@ -393,7 +393,8 @@ its index::
|
||||||
|
|
||||||
int PyFunction_RemoveSpecialized(PyObject *func, Py_ssize_t index)
|
int PyFunction_RemoveSpecialized(PyObject *func, Py_ssize_t index)
|
||||||
|
|
||||||
Return ``0`` on sucess. Raise an exception and return ``-1`` on error.
|
Return ``0`` on sucess or if the index does not exist. Raise an exception and
|
||||||
|
return ``-1`` on error.
|
||||||
|
|
||||||
|
|
||||||
PyFunction_RemoveAllSpecialized
|
PyFunction_RemoveAllSpecialized
|
||||||
|
@ -402,7 +403,10 @@ PyFunction_RemoveAllSpecialized
|
||||||
Add a function method to remove all specialized codes and guards of a
|
Add a function method to remove all specialized codes and guards of a
|
||||||
function::
|
function::
|
||||||
|
|
||||||
void PyFunction_RemoveAllSpecialized(PyObject *func)
|
int PyFunction_RemoveAllSpecialized(PyObject *func)
|
||||||
|
|
||||||
|
Return ``0`` on success. Raise an exception and return ``-1`` if *func* is not
|
||||||
|
a function.
|
||||||
|
|
||||||
|
|
||||||
Benchmark
|
Benchmark
|
||||||
|
|
Loading…
Reference in New Issue