summaryrefslogtreecommitdiffstats
path: root/Doc/library/io.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-05 22:33:59 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-03-05 22:33:59 (GMT)
commit394ee00993b5bc02d5567c9d293f42ed289c32bf (patch)
tree048e221b088881cdbb5c93b9f9d1110cdb7c5283 /Doc/library/io.rst
parent36a30cefd7a10d604617eb3309ecdcf64e257f54 (diff)
downloadcpython-394ee00993b5bc02d5567c9d293f42ed289c32bf.zip
cpython-394ee00993b5bc02d5567c9d293f42ed289c32bf.tar.gz
cpython-394ee00993b5bc02d5567c9d293f42ed289c32bf.tar.bz2
remove usage of the deprecated max_buffer_size
Diffstat (limited to 'Doc/library/io.rst')
-rw-r--r--Doc/library/io.rst15
1 files changed, 9 insertions, 6 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst
index b0b898d..cfd1af5 100644
--- a/Doc/library/io.rst
+++ b/Doc/library/io.rst
@@ -505,8 +505,9 @@ Buffered Streams
The constructor creates a :class:`BufferedWriter` for the given writeable
*raw* stream. If the *buffer_size* is not given, it defaults to
- :data:`DEFAULT_BUFFER_SIZE`. If *max_buffer_size* is omitted, it defaults to
- twice the buffer size.
+ :data:`DEFAULT_BUFFER_SIZE`.
+
+ *max_buffer_size* is unused and deprecated.
:class:`BufferedWriter` provides or overrides these methods in addition to
those from :class:`BufferedIOBase` and :class:`IOBase`:
@@ -532,8 +533,9 @@ Buffered Streams
*reader* and *writer* are :class:`RawIOBase` objects that are readable and
writeable respectively. If the *buffer_size* is omitted it defaults to
- :data:`DEFAULT_BUFFER_SIZE`. The *max_buffer_size* (for the buffered writer)
- defaults to twice the buffer size.
+ :data:`DEFAULT_BUFFER_SIZE`.
+
+ *max_buffer_size* is unused and deprecated.
:class:`BufferedRWPair` implements all of :class:`BufferedIOBase`\'s methods.
@@ -545,8 +547,9 @@ Buffered Streams
The constructor creates a reader and writer for a seekable raw stream, given
in the first argument. If the *buffer_size* is omitted it defaults to
- :data:`DEFAULT_BUFFER_SIZE`. The *max_buffer_size* (for the buffered writer)
- defaults to twice the buffer size.
+ :data:`DEFAULT_BUFFER_SIZE`.
+
+ *max_buffer_size* is unused and deprecated.
:class:`BufferedRandom` is capable of anything :class:`BufferedReader` or
:class:`BufferedWriter` can do.