summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-08-30 15:25:47 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2008-08-30 15:25:47 (GMT)
commit3ffe56398a84f06ba19aeddb0292068be7829e88 (patch)
treeb195013ecdf87b024088b7f4dd45aeecc5ded44d /Doc/whatsnew
parentbf0a5951c98c3c82f725e833afa0cedd98b66cc6 (diff)
downloadcpython-3ffe56398a84f06ba19aeddb0292068be7829e88.zip
cpython-3ffe56398a84f06ba19aeddb0292068be7829e88.tar.gz
cpython-3ffe56398a84f06ba19aeddb0292068be7829e88.tar.bz2
Correction from Antoine Pitrou: BufferedWriter and Reader support seek()
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/2.6.rst15
1 files changed, 8 insertions, 7 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst
index 759f7cb..2002b5b 100644
--- a/Doc/whatsnew/2.6.rst
+++ b/Doc/whatsnew/2.6.rst
@@ -1025,12 +1025,13 @@ the :mod:`io` module:
There are five concrete classes implementing this ABC.
:class:`BufferedWriter` and :class:`BufferedReader` are for objects
- that only support writing or reading and don't support random
- access. :class:`BufferedRandom` adds the :meth:`seek` method for
- random access, and :class:`BufferedRWPair` is for objects such as
- TTYs that have both read and write operations that act upon
- unconnected streams of data. The :class:`BytesIO`
- class supports reading, writing, and seeking over an in-memory buffer.
+ that support write-only or read-only usage that have a :meth:`seek`
+ method for random access. :class:`BufferedRandom` objects support
+ read and write access upon the same underlying stream, and
+ :class:`BufferedRWPair` is for objects such as TTYs that have both
+ read and write operations acting upon unconnected streams of data.
+ The :class:`BytesIO` class supports reading, writing, and seeking
+ over an in-memory buffer.
* :class:`TextIOBase`: Provides functions for reading and writing
strings (remember, strings will be Unicode in Python 3.0),
@@ -3152,5 +3153,5 @@ Acknowledgements
The author would like to thank the following people for offering suggestions,
corrections and assistance with various drafts of this article:
-Georg Brandl, Jim Jewett.
+Georg Brandl, Jim Jewett, Antoine Pitrou.