[ python-Patches-1731036 ] BufReader, TextReader for PEP 3116 "New I/O"

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.python.patches
Message-ID <[email protected]>
Patches item #1731036, was opened at 2007-06-04 17:52
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1731036&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ilguiz Latypov (ilgiz)
Assigned to: Nobody/Anonymous (nobody)
Summary: BufReader, TextReader for PEP 3116 "New I/O"

Initial Comment:
Here is a simple implementation of a line-oriented reader deriving from a buffered reader.  Unlike the suggested extra derivation of buffered I/O class from a raw I/O class, my BufReader only wraps an "iterable" stream.  Besides, I found I had to return an empty string instead of None on EOF because Python2.5's codecs.py assumes the former.

Submitting this just in case it is found useful.


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1731036&group_id=5470
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.