From dfdfaab1c54425113e07b623f7dc38f60762cee1 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 1 Dec 2007 11:20:10 +0000 Subject: 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. --- Python/sysmodule.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Python/sysmodule.c') diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 617c38a2d7..2a6a8c3e57 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1169,6 +1169,8 @@ _PySys_Init(void) PyInt_FromLong(PyInt_GetMax())); SET_SYS_FROM_STRING("py3kwarning", PyBool_FromLong(Py_Py3kWarningFlag)); + SET_SYS_FROM_STRING("float_info", + PyFloat_GetInfo()); #ifdef Py_USING_UNICODE SET_SYS_FROM_STRING("maxunicode", PyInt_FromLong(PyUnicode_GetMax())); -- cgit v1.2.1