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: More PEP 3116 classes
Type: Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, mark_t_russell
Priority: normal Keywords: patch

Created on 2007-03-22 18:18 by mark_t_russell, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pep-3116-textio.diff mark_t_russell, 2007-03-24 22:34 Efficient text .readline() plus other changes
pep-3116-pep.diff mark_t_russell, 2007-03-24 22:46 Add wording about TextIOBase.seek()
Messages (5)
msg52293 - (view) Author: Mark Russell (mark_t_russell) Date: 2007-03-22 18:18
More PEP 3116 implementation:

   - docstrings for RawIOBase methods

   - Simple implementations of StringIO, TextIOBase and TextIOWrapper

   - Simplify while condition in BufferedReader.read()

   - Add unit tests for StringIO (modified copy of the ByteIO tests)
msg52294 - (view) Author: Mark Russell (mark_t_russell) Date: 2007-03-24 22:34
More changes:

   - Make TextIOWrapper.readline() reasonably efficient

   - Fix TextIOWrapper.read()

   - Unit tests for TextIOWrapper .readline() and .read() (more needed)

   - Readahead support for BufferedReader (i.e. so it reads in buffer size chunks)

   - Fix codecs.BufferedIncrementalDecoder buffer type (bytes not str)

   - Unit test to check the raw reads that BufferedReader is doing

   - Fix BufferedRandom positioning bug when switching from reading to writing
File Added: pep-3116-textio.diff
msg52295 - (view) Author: Mark Russell (mark_t_russell) Date: 2007-03-24 22:46
File Added: pep-3116-pep.diff
msg52296 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2007-04-05 18:26
I'm finally getting to this.  Sorry for my tardiness!

I've started by applying the PEP patch.  Now reviewing the code patch...
msg52297 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2007-04-06 17:34
The code patches are checked in too, with some cleanup applied.  I rolled back your change to codecs.py, as it broke test_codecs.py; instead, I added an ugly hack where we patch the codec after it's been created.

I'll be working more on this code soon, I expect.  Stay tuned -- and thanks for your work!  (Technically, the PSF needs a contribution form from you, see http://www.python.org/psf/contrib/.)
History
Date User Action Args
2022-04-11 14:56:23adminsetgithub: 44762
2008-01-06 22:29:46adminsetkeywords: - py3k
versions: + Python 3.0
2007-03-22 18:18:25mark_t_russellcreate