[Patches] [ python-Patches-462596 ] StringIO Enhancement

noreply@sourceforge.net noreply@sourceforge.net
Mon, 24 Sep 2001 08:41:50 -0700


Patches item #462596, was opened at 2001-09-18 10:02
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=462596&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: M.-A. Lemburg (lemburg)
>Assigned to: M.-A. Lemburg (lemburg)
Summary: StringIO Enhancement

Initial Comment:
This patch allows using arbitrary read-buffer
compatible objects as basis for StringIO and cStringIO
objects.

Previously, StringIO.py and cStringIO could only handle
Python string objects as input buffer and in the
.write() methods. The patch modifies the two modules in
 a way which automatically translates the used objects
into strings (using the "s#" parser marker or str() to
implement the conversion), e.g. Unicode objects,
buffers, memory mapped files, etc.

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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-09-24 08:41

Message:
Logged In: YES 
user_id=6380

Looks fine to me. Just check it in...

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

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