Message161467
On May 23, 2012, at 10:13 PM, Éric Araujo wrote:
>
>Thanks for the report. How did you find this? According to the doc of
>LooseVersion, 'a' is not valid, so I would like a real example to accept this
>as a bug.
It works in Python 2.7 so I think it was viewed as a regression.
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils.version import LooseVersion as v
>>> v('a') < v('0')
False
But if 'a' is invalid, then LooseVersion should refuse to accept it in its
constructor, right? |
|
Date |
User |
Action |
Args |
2012-05-23 22:25:07 | barry | set | recipients:
+ barry, tarek, eric.araujo, piotr, Natalia |
2012-05-23 22:25:07 | barry | link | issue14894 messages |
2012-05-23 22:25:07 | barry | create | |
|