diff Python/sysmodule.c @ 52233:9b358eae532a legacy-trunk

Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms. Backport of r70459.
author Mark Dickinson <dickinsm@gmail.com>
date Fri, 20 Mar 2009 15:51:55 +0000
parents e239e977bb32
children f90b3eec7c32
line wrap: on
line diff
--- a/Python/sysmodule.c	Thu Mar 19 23:22:25 2009 +0000
+++ b/Python/sysmodule.c	Fri Mar 20 15:51:55 2009 +0000
@@ -1043,6 +1043,8 @@
 "\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 @@
 			    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()));