Mark Lawrence breamore...@yahoo.co.uk added the comment:
Closed as os.popen deprecated in favour of subprocess.popen.
--
nosy: +BreamoreBoy
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
anatoly techtonik techto...@gmail.com added the comment:
I can confirm this but, but os.popen() is deprecated in 2.6 hence there
is no point in fixing generated exception even though in a language that
claims to be cross-platform exceptions should be unified.
I would add os.popen to keywords
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
On Windows:
os.popen(cmd, )
Traceback (most recent call last):
File stdin, line 1, in module
ValueError: popen() arg 2 must be 'r' or 'w'
Windows has a specific implementation of os.popen, which does validate
the mode. Whereas on
Daniel Diniz aja...@gmail.com added the comment:
This snippet still raises 'OSError: [Errno 22] ...' in Linux:
import os
os.popen('ls', '')
Can anyone do a quick check on Windows?
--
nosy: +ajaksu2, georg.brandl
priority: normal - low
stage: - test needed
versions: +Python 2.7