Marc-Andre Lemburg <m...@egenix.com> added the comment:

STINNER Victor wrote:
> 
> STINNER Victor <victor.stin...@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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11377>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to