Mercurial > cpython-lru_cache-weakref
diff Include/floatobject.h @ 44085:c218d1ac916e legacy-trunk
Feature #1534
Added PyFloat_GetMax(), PyFloat_GetMin() and PyFloat_GetInfo() to the float API.
Added a dictionary sys.float_info with information about the internal floating point type to the sys module.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Sat, 01 Dec 2007 11:20:10 +0000 |
| parents | 6620a510e9a9 |
| children | 24749a380409 |
line wrap: on
line diff
--- a/Include/floatobject.h Sat Dec 01 01:03:20 2007 +0000 +++ b/Include/floatobject.h Sat Dec 01 11:20:10 2007 +0000 @@ -21,6 +21,10 @@ #define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type) #define PyFloat_CheckExact(op) (Py_Type(op) == &PyFloat_Type) +PyAPI_FUNC(double) PyFloat_GetMax(void); +PyAPI_FUNC(double) PyFloat_GetMin(void); +PyAPI_FUNC(PyObject *) PyFloat_GetInfo(void); + /* 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). */
