Yaroslav Halchenko, 02.08.2012 19:02:
> just a side-note -- I didn't know that StrictVersion doesn't play nicely with 
> LooseVersion to any degree:
> 
> $> python -c 'from distutils.version import LooseVersion as LV, StrictVersion 
> as SV; print SV("0.17") > LV("0.18")' 
> True
> 
> at least in python3 it pukes:
> 
> $> python3 -c 'from distutils.version import LooseVersion as LV, 
> StrictVersion as SV; print(SV("0.17") > LV("0.18"))' 
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/usr/lib/python3.2/distutils/version.py", line 70, in __gt__
>     c = self._cmp(other)
>   File "/usr/lib/python3.2/distutils/version.py", line 179, in _cmp
>     if self.version < other.version:
> TypeError: unorderable types: tuple() < list()

That's surprising at first sight, but I don't think it hurts all that much.
People would normally use either of them, not both.

Anyway, the next release candidate of Cython will be called 0.17c1. Both
the LooseVersion and the NormalizedVersion should be able to handle that.

Stefan

_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to