diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-04-25 20:13:54 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-04-25 20:13:54 (GMT) |
commit | 0fb5b398cddbf75a121b93680c8f9771f2e8499c (patch) | |
tree | 3dbc93537adc3f6c86318dbddcc5696096b30197 | |
parent | 11846905d33d696f14a4ae26383104feacdc0f17 (diff) | |
parent | 2043f9c582943ec7624f8aec5dc58e59a0b9a5b0 (diff) | |
download | cpython-0fb5b398cddbf75a121b93680c8f9771f2e8499c.zip cpython-0fb5b398cddbf75a121b93680c8f9771f2e8499c.tar.gz cpython-0fb5b398cddbf75a121b93680c8f9771f2e8499c.tar.bz2 |
Merge #11901: add description of how bitfields are laid out to hexversion docs
Patch by Sijin Joseph.
-rw-r--r-- | Doc/library/sys.rst | 23 | ||||
-rw-r--r-- | Misc/ACKS | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index e03ac8a..6fff43d 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -552,6 +552,29 @@ always available. ``version_info`` value 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 gamma and | + | | ``0xF`` for final) | + +-------------------------+------------------------------------------------+ + | :const:`29-32` | ``PY_RELEASE_SERIAL`` (the ``3`` in | + | | ``2.1.0a3``) | + +-------------------------+------------------------------------------------+ + + thus ``2.1.0a3`` is hexversion ``0x020100a3`` .. data:: int_info @@ -442,6 +442,7 @@ Irmen de Jong Lucas de Jonge John Jorgensen Jens B. Jorgensen +Sijin Joseph Andreas Jung Tattoo Mabonzo K. Bob Kahn |