This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: BufReader, TextReader for PEP 3116 "New I/O"
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: gvanrossum, ilgiz, nnorwitz
Priority: normal Keywords: patch

Created on 2007-06-04 21:52 by ilgiz, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pep3116.py ilgiz, 2007-06-04 21:52 BufReader, TextReader and a simple test.
Messages (4)
msg52708 - (view) Author: Ilguiz Latypov (ilgiz) Date: 2007-06-04 21:52
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.
msg52709 - (view) Author: Ilguiz Latypov (ilgiz) Date: 2007-06-04 21:57
(I did not take into account the suggested newline and codec parameters, either).
msg52710 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2007-06-05 01:44
Guido, this might be of interest if you are working on new i/o again.  I haven't reviewed it.
msg52711 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2007-08-21 19:23
Thanks, this has been superseded by the curernt implementation of io.py.
History
Date User Action Args
2022-04-11 14:56:24adminsetgithub: 45036
2007-06-04 21:52:05ilgizcreate