diff Python/sysmodule.c @ 52215:bb5de24a343f

Issue #4258: Make it possible to use 30-bit digits for PyLongs: - new configure option --enable-big-digits - new structseq sys.int_info giving information about the internal format By default, 30-bit digits are enabled on 64-bit machines but disabled on 32-bit machines.
author Mark Dickinson <dickinsm@gmail.com>
date Wed, 18 Mar 2009 20:06:12 +0000
parents 4cc49d978ec2
children 97ae7a709c1d
line wrap: on
line diff
--- a/Python/sysmodule.c	Wed Mar 18 16:09:22 2009 +0000
+++ b/Python/sysmodule.c	Wed Mar 18 20:06:12 2009 +0000
@@ -1012,6 +1012,7 @@
 Static objects:\n\
 \n\
 float_info -- a dict with information about the float implementation.\n\
+int_info -- a struct sequence with information about the int implementation.\n\
 maxsize -- the largest supported length of containers.\n\
 maxunicode -- the largest supported character\n\
 builtin_module_names -- tuple of module names built into this interpreter\n\
@@ -1375,6 +1376,8 @@
 			    PyLong_FromSsize_t(PY_SSIZE_T_MAX));
 	SET_SYS_FROM_STRING("float_info",
 			    PyFloat_GetInfo());
+	SET_SYS_FROM_STRING("int_info",
+			    PyLong_GetInfo());
 	SET_SYS_FROM_STRING("maxunicode",
 			    PyLong_FromLong(PyUnicode_GetMax()));
 	SET_SYS_FROM_STRING("builtin_module_names",