Barry A. Warsaw <ba...@python.org> added the comment:

On May 24, 2012, at 03:03 PM, Éric Araujo wrote:

>> But if 'a' is invalid, then LooseVersion should refuse to accept it in its
>> constructor, right?

>It’s complicated.  The doc does not say much, the docstring however clearly
>states that versions should start with a digit, but a ton of projects use
>invalid-but-not-rejected formats.  distutils2 makes a clean break with clear
>rules (PEP 386); I’m not sure it would be acceptable for distutils to
>suddenly reject these versions.  It sounds useful but even with that change
>people would not always comply with PEP 386, so better let them use broken
>versions with distutils and force a switch to a fully compliant format with
>d2.  Does that make sense?

It does, but in that case, I think the comparison should continue to succeed,
with whatever results it produces in Python 2.7.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14894>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to