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 POSIX platforms, the parameters are passed as is to the popen() function. I'd call this an "implementation detail", and the exact exception is not important IMO. ---------- nosy: +amaury.forgeotdarc _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue798520> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com