diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-03-07 13:14:44 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-03-07 13:14:44 (GMT) |
commit | 7d82c8621bb72035b2e36388d616533dacfc2e43 (patch) | |
tree | 2a2e8012534e21bdafeb4e8a369f0d1f25195a65 /Doc/library/sys.rst | |
parent | 4f1974496a2c718dfd8f5f5f332d24856dbce4ea (diff) | |
download | cpython-7d82c8621bb72035b2e36388d616533dacfc2e43.zip cpython-7d82c8621bb72035b2e36388d616533dacfc2e43.tar.gz cpython-7d82c8621bb72035b2e36388d616533dacfc2e43.tar.bz2 |
Close #15465: Document C API version macros
Mostly moving the existing macro docs over from the standard
library docs to the C API docs where they belong.
Patch by Kushal Das.
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r-- | Doc/library/sys.rst | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 6264437..aad32d2 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -598,29 +598,7 @@ always available. :term:`struct sequence` :data:`sys.version_info` may be used for a more human-friendly encoding of the same information. - The ``hexversion`` is a 32-bit number with the following layout: - - +-------------------------+------------------------------------------------+ - | Bits (big endian order) | Meaning | - +=========================+================================================+ - | :const:`1-8` | ``PY_MAJOR_VERSION`` (the ``2`` in | - | | ``2.1.0a3``) | - +-------------------------+------------------------------------------------+ - | :const:`9-16` | ``PY_MINOR_VERSION`` (the ``1`` in | - | | ``2.1.0a3``) | - +-------------------------+------------------------------------------------+ - | :const:`17-24` | ``PY_MICRO_VERSION`` (the ``0`` in | - | | ``2.1.0a3``) | - +-------------------------+------------------------------------------------+ - | :const:`25-28` | ``PY_RELEASE_LEVEL`` (``0xA`` for alpha, | - | | ``0xB`` for beta, ``0xC`` for release | - | | candidate and ``0xF`` for final) | - +-------------------------+------------------------------------------------+ - | :const:`29-32` | ``PY_RELEASE_SERIAL`` (the ``3`` in | - | | ``2.1.0a3``, zero for final releases) | - +-------------------------+------------------------------------------------+ - - Thus ``2.1.0a3`` is hexversion ``0x020100a3``. + More details of ``hexversion`` can be found at :ref:`apiabiversion` .. data:: implementation |