]> granicus.if.org Git - python/commit
Add sys.hexversion, which is an integer encoding the version in hexadecimal.
authorGuido van Rossum <guido@python.org>
Sun, 3 Jan 1999 12:55:39 +0000 (12:55 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 3 Jan 1999 12:55:39 +0000 (12:55 +0000)
commite0d7dae3b8008b5037df6cb212ca6efacf7a012d
tree656f8e64fab11ca304073972dba276947a50a43b
parent6e0a3499abd22582dd695a667863741cea1fb749
Add sys.hexversion, which is an integer encoding the version in hexadecimal.
In other words, hex(sys.hexversion) == 0x010502b2 for Python 1.5.2b2.
This is derived from the new variable PY_VERSION_HEX defined in patchlevel.h.
(Cute, eh?)
Python/sysmodule.c