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 ollieparanoid2
Recipients ollieparanoid2
Date 2017-05-04.19:54:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493927689.09.0.0396614156141.issue30272@psf.upfronthosting.co.za>
In-reply-to
Content
This should return True and not raise an exception:

>>> from distutils.version import LooseVersion
>>> LooseVersion("22.7-r1") < LooseVersion("22.7.3-r1")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/distutils/version.py", line 52, in __lt__
    c = self._cmp(other)
  File "/usr/lib/python3.6/distutils/version.py", line 337, in _cmp
    if self.version < other.version:
TypeError: '<' not supported between instances of 'str' and 'int'
>>>

Tested with Python 3.6.1.
History
Date User Action Args
2017-05-04 19:54:49ollieparanoid2setrecipients: + ollieparanoid2
2017-05-04 19:54:49ollieparanoid2setmessageid: <1493927689.09.0.0396614156141.issue30272@psf.upfronthosting.co.za>
2017-05-04 19:54:49ollieparanoid2linkissue30272 messages
2017-05-04 19:54:49ollieparanoid2create