[Distutils] PEP440: >1.7 vs >=1.7

Donald Stufft donald at stufft.io
Sun Dec 28 02:39:26 CET 2014


> On Dec 27, 2014, at 8:35 PM, Marcus Smith <qwcode at gmail.com> wrote:
> 
> 
> I'm starting a new thread to state cleanly what my current question/concern is...
> 
> per PEP440 as I understand it:
> - for ">1.7", "1.7" means roughly the "1.7 series" or "1.7*"
> - for ">=1.7", "1.7" means literally "1.7" (with zero-padding as needed)
> 
> While I understand the motivation for the "series" conception of 1.7 to deal with  prereleases, the resulting inconsistency in meaning for "1.7" is what concerns me.  It's odd .  Can someone make it not seem odd for "1.7 to change meanings just because you switch between >= and >?
> 
> And for anyone who wants to say that "1.7" also means the "1.7 series" for >=, note that 1.7 prereleases do not satisfy >=1.7
> 
> Would a solution be to make >= also use the series concept?, i.e. make pre-releases satisfy >=1.7

The equality operator pads zeros, >= has the equality operator as part of it.

---
Donald Stufft
PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20141227/c444d9aa/attachment.html>


More information about the Distutils-SIG mailing list