summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-03-15 18:59:31 (GMT)
committerGuido van Rossum <guido@python.org>2007-03-15 18:59:31 (GMT)
commitc819dea40d58f84c61d7d1129d340700e20b9d74 (patch)
tree6a2fcb562ca56d4470a5d930f64208ffdcb1a056
parent44d7bee296636d7c419123fff9acb37da4f864f5 (diff)
downloadcpython-c819dea40d58f84c61d7d1129d340700e20b9d74.zip
cpython-c819dea40d58f84c61d7d1129d340700e20b9d74.tar.gz
cpython-c819dea40d58f84c61d7d1129d340700e20b9d74.tar.bz2
Add some XXX comments and fix BufferedReader signature.
-rw-r--r--Lib/io.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 4c1912e..e4e6759 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -4,6 +4,10 @@ This is an early prototype; eventually some of this will be
reimplemented in C and the rest may be turned into a package.
See PEP XXX; for now: http://docs.google.com/Doc?id=dfksfvqd_1cn5g5m
+
+XXX need to default buffer size to 1 if isatty()
+XXX need to support 1 meaning line-buffered
+XXX change behavior of blocking I/O
"""
__author__ = ("Guido van Rossum <guido@python.org>, "
@@ -17,7 +21,7 @@ import os
DEFAULT_BUFFER_SIZE = 8 * 1024 # bytes
DEFAULT_MAX_BUFFER_SIZE = 16 * 1024 # bytes
-EOF = b''
+EOF = b'' # XXX This is wrong because it's mutable
class BlockingIO(IOError):
@@ -376,7 +380,7 @@ class BufferedReader(BufferedIOBase):
Does not allow random access (seek, tell).
"""
- def __init__(self, raw):
+ def __init__(self, raw, unused_buffer_size=None):
"""Create a new buffered reader using the given readable raw IO object.
"""
assert raw.readable()