[Patches] [ python-Patches-788404 ] ignore "b" and "t" mode modifiers in posix_popen

SourceForge.net noreply at sourceforge.net
Sun Aug 31 10:42:35 EDT 2003


Patches item #788404, was opened at 2003-08-14 00:53
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=788404&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Gaul (gaul)
Assigned to: Nobody/Anonymous (nobody)
Summary: ignore "b" and "t" mode modifiers in posix_popen

Initial Comment:
Fixes bug 703198.  This patch removes any "b" or "t"
modifiers, which have meaning in Windows (binary and
text modes, respectively), but not in POSIX.  This
allows users to write portable code between Windows and
POSIX when working on binary data in pipes:
os.popen(cmd, 'rb').

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-08-31 18:42

Message:
Logged In: YES 
user_id=21627

Maybe I'm mistaken: Does this patch really modify the string
object that is being passed? This would not be good: strings
are immutable.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=788404&group_id=5470



More information about the Patches mailing list