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
a5c313dc
Commit
a5c313dc
authored
May 09, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add to an XXX comment.
parent
0e02abb7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Lib/io.py
Lib/io.py
+2
-1
No files found.
Lib/io.py
View file @
a5c313dc
...
@@ -601,7 +601,8 @@ class StringIO(_MemoryIOMixin):
...
@@ -601,7 +601,8 @@ class StringIO(_MemoryIOMixin):
# XXX This doesn't work; _MemoryIOMixin's write() and truncate()
# XXX This doesn't work; _MemoryIOMixin's write() and truncate()
# methods assume the buffer is mutable. Simply redefining those
# methods assume the buffer is mutable. Simply redefining those
# to use slice concatenation will make it awfully slow (in fact,
# to use slice concatenation will make it awfully slow (in fact,
# quadratic in the number of write() calls).
# quadratic in the number of write() calls). Also, there are no
# readline() and readlines() methods. Etc., etc.
def
__init__
(
self
,
inital_string
=
None
):
def
__init__
(
self
,
inital_string
=
None
):
buffer
=
""
buffer
=
""
...
...
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