mirror of
https://github.com/python/cpython
synced 2026-09-29 09:05:29 +03:00
make _PyNumber_ConvertIntegralToInt static, since it's only used in abstract.c
This commit is contained in:
parent
d614e707ca
commit
b7f1da5a3c
2 changed files with 10 additions and 19 deletions
|
|
@ -772,21 +772,6 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
|
|||
|
||||
PyAPI_FUNC(Py_ssize_t) PyNumber_AsSsize_t(PyObject *o, PyObject *exc);
|
||||
|
||||
/*
|
||||
Returns the Integral instance converted to an int. The
|
||||
instance is expected to be int or long or have an __int__
|
||||
method. Steals integral's reference. error_format will be
|
||||
used to create the TypeError if integral isn't actually an
|
||||
Integral instance. error_format should be a format string
|
||||
that can accept a char* naming integral's type.
|
||||
*/
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
PyAPI_FUNC(PyObject *) _PyNumber_ConvertIntegralToInt(
|
||||
PyObject *integral,
|
||||
const char* error_format);
|
||||
#endif
|
||||
|
||||
/*
|
||||
Returns the object converted to Py_ssize_t by going through
|
||||
PyNumber_Index first. If an overflow error occurs while
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue