mirror of
https://github.com/python/cpython.git
synced 2026-05-17 18:08:50 -04:00
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Backport of r70459.
This commit is contained in:
@@ -1043,6 +1043,8 @@ PyDoc_STR(
|
||||
"\n\
|
||||
Static objects:\n\
|
||||
\n\
|
||||
float_info -- a dict with information about the float inplementation.\n\
|
||||
long_info -- a struct sequence with information about the long implementation.\n\
|
||||
maxint -- the largest supported integer (the smallest is -maxint-1)\n\
|
||||
maxsize -- the largest supported length of containers.\n\
|
||||
maxunicode -- the largest supported character\n\
|
||||
@@ -1443,6 +1445,8 @@ _PySys_Init(void)
|
||||
PyBool_FromLong(Py_Py3kWarningFlag));
|
||||
SET_SYS_FROM_STRING("float_info",
|
||||
PyFloat_GetInfo());
|
||||
SET_SYS_FROM_STRING("long_info",
|
||||
PyLong_GetInfo());
|
||||
#ifdef Py_USING_UNICODE
|
||||
SET_SYS_FROM_STRING("maxunicode",
|
||||
PyInt_FromLong(PyUnicode_GetMax()));
|
||||
|
||||
Reference in New Issue
Block a user