mirror of
https://github.com/python/cpython.git
synced 2025-07-28 05:34:31 +00:00
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.
This commit is contained in:
parent
9f6d4ceb43
commit
dfdfaab1c5
7 changed files with 120 additions and 0 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue