mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
Remove the deprecated and useless "pend" argument from
PyFloat_FromString. (fixes bug #1650903)
This commit is contained in:
parent
9091e3a423
commit
428f0641ec
6 changed files with 10 additions and 29 deletions
|
@ -21,10 +21,8 @@ PyAPI_DATA(PyTypeObject) PyFloat_Type;
|
|||
#define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type)
|
||||
#define PyFloat_CheckExact(op) ((op)->ob_type == &PyFloat_Type)
|
||||
|
||||
/* Return Python float from string PyObject. Second argument ignored on
|
||||
input, and, if non-NULL, NULL is stored into *junk (this tried to serve a
|
||||
purpose once but can't be made to work as intended). */
|
||||
PyAPI_FUNC(PyObject *) PyFloat_FromString(PyObject*, char** junk);
|
||||
/* Return Python float from string PyObject. */
|
||||
PyAPI_FUNC(PyObject *) PyFloat_FromString(PyObject*);
|
||||
|
||||
/* Return Python float from C double. */
|
||||
PyAPI_FUNC(PyObject *) PyFloat_FromDouble(double);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue