.. highlightlang:: c
PY_VERSION_HEX is the Python version number encoded in a single integer.
For example if the PY_VERSION_HEX is set to 0x030401a2, the underlying
version information can be found by treating it as a 32 bit number in
the following manner:
Bytes Bits (big endian order) Meaning 11-8PY_MAJOR_VERSION(the3in3.4.1a2)29-16PY_MINOR_VERSION(the4in3.4.1a2)317-24PY_MICRO_VERSION(the1in3.4.1a2)425-28PY_RELEASE_LEVEL(0xAfor alpha,0xBfor beta,0xCfor release candidate and0xFfor final), in this case it is alpha.29-32PY_RELEASE_SERIAL(the2in3.4.1a2, zero for final releases)
Thus 3.4.1a2 is hexversion 0x030401a2.
All the given macros are defined in :source:`Include/patchlevel.h`.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。