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
0fd55764
Commit
0fd55764
authored
Dec 25, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20058: sys.stdin.readline() in IDLE now always returns only one line.
parent
f47036c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
Lib/idlelib/PyShell.py
Lib/idlelib/PyShell.py
+3
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/idlelib/PyShell.py
View file @
0fd55764
...
...
@@ -1381,6 +1381,9 @@ class PseudoInputFile(PseudoFile):
line
=
self
.
_line_buffer
or
self
.
shell
.
readline
()
if
size
<
0
:
size
=
len
(
line
)
eol
=
line
.
find
(
'
\
n
'
,
0
,
size
)
if
eol
>=
0
:
size
=
eol
+
1
self
.
_line_buffer
=
line
[
size
:]
return
line
[:
size
]
...
...
Misc/NEWS
View file @
0fd55764
...
...
@@ -169,6 +169,8 @@ Library
IDLE
----
- Issue #20058: sys.stdin.readline() in IDLE now always returns only one line.
- Issue #19481: print() of string subclass instance in IDLE no longer hangs.
- Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial
...
...
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