Author vstinner
Recipients Arfrever, David.Benjamin, jcea, lemburg, pitrou, python-dev, vstinner
Date 2012-10-09.21:34:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349818492.6.0.718153686867.issue16112@psf.upfronthosting.co.za>
In-reply-to
Content
> 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 platform.py? Where does this file come from?

Using subprocess sounds safer than adding a (theorical) TOCTTOU issue:
http://en.wikipedia.org/wiki/Time_of_check_to_time_of_use

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.
History
Date User Action Args
2012-10-09 21:34:52vstinnersetrecipients: + vstinner, lemburg, jcea, pitrou, Arfrever, python-dev, David.Benjamin
2012-10-09 21:34:52vstinnersetmessageid: <1349818492.6.0.718153686867.issue16112@psf.upfronthosting.co.za>
2012-10-09 21:34:52vstinnerlinkissue16112 messages
2012-10-09 21:34:52vstinnercreate