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 /Python | |
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 'Python')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 617c38a..2a6a8c3 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())); |