On Fri, 5 Oct 2018 11:31:20 +0300 Matti Picus <matti.pi...@gmail.com> 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 | MINOR << 16 | MICRO) +1 We use it in our code and it is a good practice, much better then 0.9.0>0.10.0 ! We added some support for dev, alpha, beta, RC and final versions in https://github.com/silx-kit/silx/blob/master/version.py Cheers, -- Jérôme Kieffer _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion