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 brian.curtin, lemburg, loewis, tim.golden, vstinner
Date 2011-03-03.09:40:09
SpamBayes Score 1.86517e-14
Marked as misclassified No
Message-id <4D6F61F8.3040002@egenix.com>
In-reply-to <1299145120.1.0.40618110123.issue11377@psf.upfronthosting.co.za>
Content
STINNER Victor wrote:
> 
> STINNER Victor <victor.stinner@haypocalc.com> added the comment:
> 
>> Try to use platform from within IDLE ...
> 
> I tried subprocess.call('calc.exec'): it works.
> 
> I tried p=subprocess.Popen('echo hello', shell=True, stdout=subprocess.PIPE); p.communicate(): it works too (I get the output and there is no MS-DOS popup).

Great. Thanks for checking.

>> Hmm, but if os.popen() is no longer supported in Python 3, how can
>> we still use it in platform ?
> 
> platform.popen() and os.popen() have the same requirement: call process.wait() on file.close(). os.popen() does already implement that using _wrap_close. I don't want to copy/paste the code from os. os.popen() does still exist, why not reusing it?
> 
> Anyway, if we remove os.popen(), we should remove platform.popen() too. But I don't want/plan to remove os.popen().

Ok.

If you remove the _popen class as well, the patch can go in.
History
Date User Action Args
2011-03-03 09:40:10lemburgsetrecipients: + lemburg, loewis, vstinner, tim.golden, brian.curtin
2011-03-03 09:40:09lemburglinkissue11377 messages
2011-03-03 09:40:09lemburgcreate