This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients Arfrever, David.Benjamin, jcea, lemburg, pitrou, python-dev, vstinner
Date 2012-10-18.12:52:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
STINNER Victor wrote:
> STINNER Victor added the comment:
>> The main reason for keeping the compatibility is that the module is
>> also being used outside the stdlib for Python versions starting from
>> 2.4 and later. I don't want to maintain two separate versions.
> Which projects use their own copy of Where does this file come from?

It's originally from the mxCGIPython project I ran a few years ago
and which now lives on in form of the eGenix PyRun project. Since
the main purpose of is to identify the underlying Python
runtime and OS platform across multiple Python runtimes and OS platforms,
it's meant to always be used in latest version, even against older Python

> Using subprocess sounds safer than adding a (theorical) TOCTTOU issue:
> If you are concerned about compatibility with Python 2.4, you should maintain platform outside the stdlib. The stdlib is regulary updated to the most recent syntax/modules. For example, "yield from" is now used in the stdlib of Python 3.4.

The Python 2.4 compatibility requirement only applies to Python 2.x,
not Python 3.x.

Since Python 2.4 does ship with subprocess, I guess we could use
subprocess even in Python 2.7, but I'm not sure whether it's a good
idea to change the code in such a major way for a patch level release.

Marc-Andre Lemburg

Professional Python Services directly from the Source  (#1, Oct 18 2012)
>>> Python Projects, Consulting and Support ...
>>> mxODBC.Zope/Plone.Database.Adapter ...
>>> mxODBC, mxDateTime, mxTextTools ...
2012-09-27: Released eGenix PyRun 1.1.0 ...
2012-09-26: Released mxODBC.Connect 2.0.1 ...
2012-09-25: Released mxODBC 3.2.1 ...   
2012-10-23: Python Meeting Duesseldorf ...                  5 days to go Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
Date User Action Args
2012-10-18 12:52:02lemburgsetrecipients: + lemburg, jcea, pitrou, vstinner, Arfrever, python-dev, David.Benjamin
2012-10-18 12:52:02lemburglinkissue16112 messages
2012-10-18 12:52:01lemburgcreate