summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-03-20 15:51:55 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-03-20 15:51:55 (GMT)
commitefc82f7e8eff19d8e844a3dc268a88de7fbcb173 (patch)
tree58198f2e7610ba6d33865884487de006de30af85 /Doc/library/sys.rst
parentc8e81ef508f0f1dc4e5c31bd0bec2766867fead5 (diff)
downloadcpython-efc82f7e8eff19d8e844a3dc268a88de7fbcb173.zip
cpython-efc82f7e8eff19d8e844a3dc268a88de7fbcb173.tar.gz
cpython-efc82f7e8eff19d8e844a3dc268a88de7fbcb173.tar.bz2
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Backport of r70459.
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r--Doc/library/sys.rst19
1 files changed, 19 insertions, 0 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 9d33c60..813e788 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -498,6 +498,25 @@ always available.
.. versionadded:: 1.5.2
+.. data:: long_info
+
+ A struct sequence that holds information about Python's
+ internal representation of integers. The attributes are read only.
+
+ +-------------------------+----------------------------------------------+
+ | attribute | explanation |
+ +=========================+==============================================+
+ | :const:`bits_per_digit` | number of bits held in each digit. Python |
+ | | integers are stored internally in base |
+ | | ``2**long_info.bits_per_digit`` |
+ +-------------------------+----------------------------------------------+
+ | :const:`sizeof_digit` | size in bytes of the C type used to |
+ | | represent a digit |
+ +-------------------------+----------------------------------------------+
+
+ .. versionadded:: 2.7
+
+
.. data:: last_type
last_value
last_traceback