Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 52212:7d8fd7955d15 | 52215:bb5de24a343f |
|---|---|
| 1010 PyDoc_STR( | 1010 PyDoc_STR( |
| 1011 "\n\ | 1011 "\n\ |
| 1012 Static objects:\n\ | 1012 Static objects:\n\ |
| 1013 \n\ | 1013 \n\ |
| 1014 float_info -- a dict with information about the float implementation.\n\ | 1014 float_info -- a dict with information about the float implementation.\n\ |
| 1015 int_info -- a struct sequence with information about the int implementation.\n\ | |
| 1015 maxsize -- the largest supported length of containers.\n\ | 1016 maxsize -- the largest supported length of containers.\n\ |
| 1016 maxunicode -- the largest supported character\n\ | 1017 maxunicode -- the largest supported character\n\ |
| 1017 builtin_module_names -- tuple of module names built into this interpreter\n\ | 1018 builtin_module_names -- tuple of module names built into this interpreter\n\ |
| 1018 subversion -- subversion information of the build as tuple\n\ | 1019 subversion -- subversion information of the build as tuple\n\ |
| 1019 version -- the version of this interpreter as a string\n\ | 1020 version -- the version of this interpreter as a string\n\ |
| 1373 PyUnicode_FromWideChar(Py_GetExecPrefix(), -1)); | 1374 PyUnicode_FromWideChar(Py_GetExecPrefix(), -1)); |
| 1374 SET_SYS_FROM_STRING("maxsize", | 1375 SET_SYS_FROM_STRING("maxsize", |
| 1375 PyLong_FromSsize_t(PY_SSIZE_T_MAX)); | 1376 PyLong_FromSsize_t(PY_SSIZE_T_MAX)); |
| 1376 SET_SYS_FROM_STRING("float_info", | 1377 SET_SYS_FROM_STRING("float_info", |
| 1377 PyFloat_GetInfo()); | 1378 PyFloat_GetInfo()); |
| 1379 SET_SYS_FROM_STRING("int_info", | |
| 1380 PyLong_GetInfo()); | |
| 1378 SET_SYS_FROM_STRING("maxunicode", | 1381 SET_SYS_FROM_STRING("maxunicode", |
| 1379 PyLong_FromLong(PyUnicode_GetMax())); | 1382 PyLong_FromLong(PyUnicode_GetMax())); |
| 1380 SET_SYS_FROM_STRING("builtin_module_names", | 1383 SET_SYS_FROM_STRING("builtin_module_names", |
| 1381 list_builtin_module_names()); | 1384 list_builtin_module_names()); |
| 1382 { | 1385 { |
