[Python-Dev] [Python-checkins] peps: PEP 426: replace implied 'version starts with' with new ~= operator (original) (raw)

Vinay Sajip vinay_sajip at yahoo.co.uk
Sat Feb 23 15:57:33 CET 2013


Nick Coghlan <ncoghlan gmail.com> writes:

Daniel is a fan of this syntax, but I think it is inferior to the implied approach, so don't expect it to survive to any accepted version of the PEP :)

Another thing against ~= is that it isn't valid Python syntax. It's not a deal- breaker, but it does mean that you can't e.g. use the ast module in the implementation. This might be a factor if the mini-language ever grows (as it recently did, adding parentheses).

Regards,

Vinay Sajip



More information about the Python-Dev mailing list