[Patches] [ python-Patches-1731036 ] BufReader, TextReader for PEP 3116 "New I/O"
SourceForge.net
noreply at sourceforge.net
Tue Jun 5 03:44:52 CEST 2007
Patches item #1731036, was opened at 2007-06-04 14:52
Message generated for change (Comment added) made by nnorwitz
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: Guido van Rossum (gvanrossum)
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.
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-06-04 18:44
Message:
Logged In: YES
user_id=33168
Originator: NO
Guido, this might be of interest if you are working on new i/o again. I
haven't reviewed it.
----------------------------------------------------------------------
Comment By: Ilguiz Latypov (ilgiz)
Date: 2007-06-04 14:57
Message:
Logged In: YES
user_id=281701
Originator: YES
(I did not take into account the suggested newline and codec parameters,
either).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1731036&group_id=5470
More information about the Patches
mailing list