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.
Created on 2017年05月04日 19:54 by ollieparanoid2, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg293009 - (view) | Author: Oliver Smith (ollieparanoid2) | Date: 2017年05月04日 19:54 | |
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.
|
|||
| msg293133 - (view) | Author: Berker Peksag (berker.peksag) * (Python committer) | Date: 2017年05月05日 18:26 | |
Thanks for the report. This is a duplicate of issue 14894. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:46 | admin | set | github: 74458 |
| 2017年05月05日 18:26:05 | berker.peksag | set | status: open -> closed superseder: distutils.LooseVersion fails to compare number and a word nosy: + berker.peksag messages: + msg293133 resolution: duplicate stage: resolved |
| 2017年05月04日 19:55:25 | ollieparanoid2 | set | nosy:
+ eric.araujo, dstufft type: behavior components: + Distutils |
| 2017年05月04日 19:54:49 | ollieparanoid2 | create | |