Re: [Numpy-discussion] Adding a hex version like PY_VERSION_HEX

2018-10-05 Thread Jerome Kieffer
On Fri, 5 Oct 2018 11:31:20 +0300 Matti Picus wrote: > In PR 12074 https://github.com/numpy/numpy/pull/12074 I propose adding a > function `version.get_numpy_version_as_hex()` which returns a hex value > to represent the current NumPy version MAJOR.MINOR.MICRO where > > v = hex(MAJOR << 24 | M

[Numpy-discussion] Adding a hex version like PY_VERSION_HEX

2018-10-05 Thread Matti Picus
In PR 12074 https://github.com/numpy/numpy/pull/12074 I propose adding a function `version.get_numpy_version_as_hex()` which returns a hex value to represent the current NumPy version MAJOR.MINOR.MICRO where v = hex(MAJOR << 24 | MINOR << 16 | MICRO) so the current 1.15.0 would become '0x10f00