diff options
author | Christian Heimes <christian@cheimes.de> | 2007-12-01 11:20:10 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-12-01 11:20:10 (GMT) |
commit | dfdfaab1c54425113e07b623f7dc38f60762cee1 (patch) | |
tree | 0ad4a7143ebb830c8879cc7cc686ca67dbe00e13 /Include | |
parent | 9f6d4ceb43583885cd090ff6adb87d31b3ac9c99 (diff) | |
download | cpython-dfdfaab1c54425113e07b623f7dc38f60762cee1.zip cpython-dfdfaab1c54425113e07b623f7dc38f60762cee1.tar.gz cpython-dfdfaab1c54425113e07b623f7dc38f60762cee1.tar.bz2 |
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.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/floatobject.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/floatobject.h b/Include/floatobject.h index bfbc580..be1a80c 100644 --- a/Include/floatobject.h +++ b/Include/floatobject.h @@ -21,6 +21,10 @@ PyAPI_DATA(PyTypeObject) PyFloat_Type; #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). */ |