[issue24916] In sysconfig, don't rely on sys.version format

STINNER Victor report at bugs.python.org
Wed Feb 12 14:53:01 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

The "py_version" variable of sysconfig is discussed since 2015 but... it's unused. It is supposed to build paths. Does it really make sense to build a path which contains "+"? It can confuse some application which may associate a special meaning to "+".

What about simply removing this variable? Does anyone know if it's used in the wild?

To me it sounds surprising to have a different path for alpha, beta and release candidate releases. Usually, Python paths only contain MAJOR.MINOR versions, no alpha, beta or rc marker. Nor "+" marker.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue24916>
_______________________________________


More information about the Python-bugs-list mailing list