[issue798520] os.popen with invalid mode differs on Windows and POSIX

2010-08-18 Thread Mark Lawrence
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

[issue798520] os.popen with invalid mode differs on Windows and POSIX

2009-06-05 Thread anatoly techtonik
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

[issue798520] os.popen with invalid mode differs on Windows and POSIX

2009-02-14 Thread Amaury Forgeot d'Arc
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

[issue798520] os.popen with invalid mode differs on Windows and POSIX

2009-02-12 Thread Daniel Diniz
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