I chatted with @bernatgabor on Discord, and just to be clear, the desire here is to fix PEP 427, because the text says:
Each component of the filename is escaped by replacing runs of non-alphanumeric characters with an underscore
_
:
but the code in the PEP says
re.sub("[^\w\d.]+", "_", distribution, re.UNICODE)
Which is how everyone implements it (and implementing it as the text says would turn 1.0
into 1-0
or py2.py3
into py2_py3
, so it’s the only logical way for it to work).
The part about PEP 503 is actually asking for PEP 625 to not reference PEP 503, and just reference PEP 427 escaping rules.