Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 9746:9342c60eaac0 legacy-trunk
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?)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 03 Jan 1999 12:55:39 +0000 |
| parents | d152adf3f094 |
| children | bd1ce4120e6f |
comparison
equal
deleted
inserted
replaced
| 9745:6fc58d79dac5 | 9746:9342c60eaac0 |
|---|
