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

noreply@sourceforge.net noreply@sourceforge.net
Tue, 18 Sep 2001 10:02:24 -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: None
Priority: 5
Submitted By: M.-A. Lemburg (lemburg)
Assigned to: Guido van Rossum (gvanrossum)
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.

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

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