Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c819dea4
Commit
c819dea4
authored
Mar 15, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some XXX comments and fix BufferedReader signature.
parent
44d7bee2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Lib/io.py
Lib/io.py
+6
-2
No files found.
Lib/io.py
View file @
c819dea4
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment