This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author maethor
Recipients dstufft, eric.araujo, maethor
Date 2015-01-29.14:42:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422542520.54.0.739308889883.issue23348@psf.upfronthosting.co.za>
In-reply-to
Content
$ 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.
History
Date User Action Args
2015-01-29 14:42:00maethorsetrecipients: + maethor, eric.araujo, dstufft
2015-01-29 14:42:00maethorsetmessageid: <1422542520.54.0.739308889883.issue23348@psf.upfronthosting.co.za>
2015-01-29 14:42:00maethorlinkissue23348 messages
2015-01-29 14:42:00maethorcreate