Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.

Backport of r70459.
This commit is contained in:
Mark Dickinson 2009-03-20 15:51:55 +00:00
parent c8e81ef508
commit efc82f7e8e
17 changed files with 859 additions and 64 deletions

View file

@ -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()));