comparison 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
comparison
equal deleted inserted replaced
44084:2b21f158ab9f 44085:c218d1ac916e
1167 PyString_FromString(Py_GetExecPrefix())); 1167 PyString_FromString(Py_GetExecPrefix()));
1168 SET_SYS_FROM_STRING("maxint", 1168 SET_SYS_FROM_STRING("maxint",
1169 PyInt_FromLong(PyInt_GetMax())); 1169 PyInt_FromLong(PyInt_GetMax()));
1170 SET_SYS_FROM_STRING("py3kwarning", 1170 SET_SYS_FROM_STRING("py3kwarning",
1171 PyBool_FromLong(Py_Py3kWarningFlag)); 1171 PyBool_FromLong(Py_Py3kWarningFlag));
1172 SET_SYS_FROM_STRING("float_info",
1173 PyFloat_GetInfo());
1172 #ifdef Py_USING_UNICODE 1174 #ifdef Py_USING_UNICODE
1173 SET_SYS_FROM_STRING("maxunicode", 1175 SET_SYS_FROM_STRING("maxunicode",
1174 PyInt_FromLong(PyUnicode_GetMax())); 1176 PyInt_FromLong(PyUnicode_GetMax()));
1175 #endif 1177 #endif
1176 SET_SYS_FROM_STRING("builtin_module_names", 1178 SET_SYS_FROM_STRING("builtin_module_names",