PEP 440: restriction of numeric version components to ASCII digits made explicit

Nick Coghlan <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <CADiSq7e9ixP2jX+aeRtgYZSxQcmR59Etmo=RA5MgZdV_SQ7hPg@mail.gmail.com>
Hi folks,

Frazer McLean noticed that even though the version parsing regex in
PEP 440 Appendix B was explicitly restricted to ASCII digits, the
`is_canonical` regex was more permissive and nominally allowed
arbitrary Unicode [Nd] characters.

The restrictive interpretation was the correct one (and reflects what
tools actually support), so I've merged Frazer's change at
https://github.com/python/peps/commit/1dd991e9001ffea6b41e9a2cd3a6549dd984b89b
to fix the omission and update the `is_canonical` regex to be
consistent with the version parsing one.

Cheers,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/VJP6S2YYYWO7UF3LQWXOPPGKTODFTAP3/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.