Message234975
$ python2.7 -c "from distutils.version import LooseVersion as V; print V('3.16.0-0.bpo.4-amd64') > V('3.16-0.bpo.2-amd64')"
False
$ python3.4 -c "from distutils.version import LooseVersion as V; print(V('3.16.0-0.bpo.4-amd64') > V('3.16-0.bpo.2-amd64'))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.4/distutils/version.py", line 70, in __gt__
c = self._cmp(other)
File "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp
if self.version < other.version:
TypeError: unorderable types: int() < str()
Same thing with python3.2 et python3.3.
I find this on Debian. They recently change the numerotation of backported kernels. |
|
Date |
User |
Action |
Args |
2015-01-29 14:42:00 | maethor | set | recipients:
+ maethor, eric.araujo, dstufft |
2015-01-29 14:42:00 | maethor | set | messageid: <1422542520.54.0.739308889883.issue23348@psf.upfronthosting.co.za> |
2015-01-29 14:42:00 | maethor | link | issue23348 messages |
2015-01-29 14:42:00 | maethor | create | |
|