File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -450,6 +450,29 @@ always available.
450450 ``version_info `` value may be used for a more human-friendly encoding of the
451451 same information.
452452
453+ The ``hexversion `` is a 32-bit number with the following layout
454+
455+ +-------------------------+------------------------------------------------+
456+ | bits (big endian order) | meaning |
457+ +=========================+================================================+
458+ | :const: `1-8 ` | ``PY_MAJOR_VERSION `` (the ``2 `` in |
459+ | | ``2.1.0a3 ``) |
460+ +-------------------------+------------------------------------------------+
461+ | :const: `9-16 ` | ``PY_MINOR_VERSION `` (the ``1 `` in |
462+ | | ``2.1.0a3 ``) |
463+ +-------------------------+------------------------------------------------+
464+ | :const: `17-24 ` | ``PY_MICRO_VERSION `` (the ``0 `` in |
465+ | | ``2.1.0a3 ``) |
466+ +-------------------------+------------------------------------------------+
467+ | :const: `25-28 ` | ``PY_RELEASE_LEVEL `` (``0xA `` for alpha, |
468+ | | ``0xB `` for beta, ``0xC `` for gamma and |
469+ | | ``0xF `` for final) |
470+ +-------------------------+------------------------------------------------+
471+ | :const: `29-32 ` | ``PY_RELEASE_SERIAL `` (the ``3 `` in |
472+ | | ``2.1.0a3 ``) |
473+ +-------------------------+------------------------------------------------+
474+
475+ thus ``2.1.0a3 `` is hexversion ``0x020100a3 ``
453476
454477.. data :: int_info
455478
Original file line number Diff line number Diff line change @@ -411,6 +411,7 @@ Irmen de Jong
411411Lucas de Jonge
412412John Jorgensen
413413Jens B. Jorgensen
414+ Sijin Joseph
414415Andreas Jung
415416Tattoo Mabonzo K.
416417Bob Kahn
You can’t perform that action at this time.
0 commit comments