diff Python/sysmodule.c @ 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 d44fffda2cd0
children 599f22a349a2
line wrap: on
line diff
--- a/Python/sysmodule.c	Sat Dec 01 01:03:20 2007 +0000
+++ b/Python/sysmodule.c	Sat Dec 01 11:20:10 2007 +0000
@@ -1169,6 +1169,8 @@
 			    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()));