mirror of https://github.com/python/cpython.git
Merge #11901: post-commit review fixes per Georg Brandl
This commit is contained in:
commit
b751d6195f
|
@ -552,10 +552,10 @@ always available.
|
||||||
struct sequence :data:`sys.version_info` may be used for a more human-friendly
|
struct sequence :data:`sys.version_info` may be used for a more human-friendly
|
||||||
encoding of the same information.
|
encoding of the same information.
|
||||||
|
|
||||||
The ``hexversion`` is a 32-bit number with the following layout
|
The ``hexversion`` is a 32-bit number with the following layout:
|
||||||
|
|
||||||
+-------------------------+------------------------------------------------+
|
+-------------------------+------------------------------------------------+
|
||||||
| bits (big endian order) | meaning |
|
| Bits (big endian order) | Meaning |
|
||||||
+=========================+================================================+
|
+=========================+================================================+
|
||||||
| :const:`1-8` | ``PY_MAJOR_VERSION`` (the ``2`` in |
|
| :const:`1-8` | ``PY_MAJOR_VERSION`` (the ``2`` in |
|
||||||
| | ``2.1.0a3``) |
|
| | ``2.1.0a3``) |
|
||||||
|
@ -567,14 +567,14 @@ always available.
|
||||||
| | ``2.1.0a3``) |
|
| | ``2.1.0a3``) |
|
||||||
+-------------------------+------------------------------------------------+
|
+-------------------------+------------------------------------------------+
|
||||||
| :const:`25-28` | ``PY_RELEASE_LEVEL`` (``0xA`` for alpha, |
|
| :const:`25-28` | ``PY_RELEASE_LEVEL`` (``0xA`` for alpha, |
|
||||||
| | ``0xB`` for beta, ``0xC`` for gamma and |
|
| | ``0xB`` for beta, ``0xC`` for release |
|
||||||
| | ``0xF`` for final) |
|
| | candidate and ``0xF`` for final) |
|
||||||
+-------------------------+------------------------------------------------+
|
+-------------------------+------------------------------------------------+
|
||||||
| :const:`29-32` | ``PY_RELEASE_SERIAL`` (the ``3`` in |
|
| :const:`29-32` | ``PY_RELEASE_SERIAL`` (the ``3`` in |
|
||||||
| | ``2.1.0a3``) |
|
| | ``2.1.0a3``, zero for final releases) |
|
||||||
+-------------------------+------------------------------------------------+
|
+-------------------------+------------------------------------------------+
|
||||||
|
|
||||||
thus ``2.1.0a3`` is hexversion ``0x020100a3``
|
Thus ``2.1.0a3`` is hexversion ``0x020100a3``.
|
||||||
|
|
||||||
.. data:: int_info
|
.. data:: int_info
|
||||||
|
|
||||||
|
@ -582,7 +582,7 @@ always available.
|
||||||
internal representation of integers. The attributes are read only.
|
internal representation of integers. The attributes are read only.
|
||||||
|
|
||||||
+-------------------------+----------------------------------------------+
|
+-------------------------+----------------------------------------------+
|
||||||
| attribute | explanation |
|
| Attribute | Explanation |
|
||||||
+=========================+==============================================+
|
+=========================+==============================================+
|
||||||
| :const:`bits_per_digit` | number of bits held in each digit. Python |
|
| :const:`bits_per_digit` | number of bits held in each digit. Python |
|
||||||
| | integers are stored internally in base |
|
| | integers are stored internally in base |
|
||||||
|
|
Loading…
Reference in New Issue