[Python-bugs-list] [ python-Bugs-703198 ] os.popen with mode "rb"
fails on Unix
SourceForge.net
noreply at sourceforge.net
Fri Oct 31 05:02:57 EST 2003
Bugs item #703198, was opened at 2003-03-13 21:35
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=703198&group_id=5470
Category: Python Library
Group: Python 2.1.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: J. Peterson (isonno)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.popen with mode "rb" fails on Unix
Initial Comment:
On Windows, it's necessary to use the mode "rb" to
open a binary stream to a process. On Unix the "b"
modifier isn't necessary, but supplying it causes the
popen call to fail with
OSError: [Errno 22] Invalid argument
The Unix version of popen should accept and simply
ignore the "b" modifier to the mode, rather than fail.
That way the same code can run on both platforms
without modification or extra code to special case an
OS that may need the "b" modifier.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2003-10-31 11:02
Message:
Logged In: YES
user_id=21627
Fixed with said patch.
----------------------------------------------------------------------
Comment By: Andrew Gaul (gaul)
Date: 2003-08-22 10:47
Message:
Logged In: YES
user_id=139865
See patch 788404 for a fix.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=703198&group_id=5470
More information about the Python-bugs-list
mailing list