Author takluyver
Recipients takluyver
Date 2015-08-22.17:52:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
sysconfig currently calculates various formats of the Python version number by chopping up the sys.version string. This has a FIXME by it in the code, because the the format of sys.version is not guaranteed.

With this patch, the config variables 'py_version', 'py_version_short' and 'py_version_nodot' are instead generated from sys.version_info, which has a specified structure:

One piece of information is lost by this change: after a pre-release, a + is added to the version string - e.g. '3.5.0b4+' means an unreleased version somewhere after 3.5.0b4. I can't find any structured representation of this information, so 'py_version' no longer contains it. I'm not sure whether it matters: I can't find anything using the 'py_version' config variable.
Date User Action Args
2015-08-22 17:52:34takluyversetrecipients: + takluyver
2015-08-22 17:52:34takluyversetmessageid: <>
2015-08-22 17:52:34takluyverlinkissue24916 messages
2015-08-22 17:52:33takluyvercreate