Roundup Robot added the comment:
New changeset def4cd7e0a9f by Serhiy Storchaka in branch '2.7':
Issue #9290: In IDLE the sys.std* streams now implement io.TextIOBase
http://hg.python.org/cpython/rev/def4cd7e0a9f
New changeset 0d26f3aa7a8f by Serhiy Storchaka in branch '3.2':
Issue #9290: In
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9290
___
Serhiy Storchaka added the comment:
If no one objects, I'm going to commit this next week.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9290
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9290
___
___
Serhiy Storchaka added the comment:
Since all previous changes were dispense with tests, I don't see why it should
become an obstacle for this patch. Please review. This patch provides a
simple and reliable solution for some other issues (mentioned in msg172685
issues and issue12967).
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9290
___
___
Terry J. Reedy added the comment:
I agree with the goal. We need an automated test for these proxies.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9290
___
Serhiy Storchaka added the comment:
Unfortunately we have not a unittest framework for IDLE yet. After implementing
issue15392 I will make tests for these proxies.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9290
Roger Serwy added the comment:
I tried the patch for 3.3 and it works for me on Linux. It correctly handles
prior issues like #13532, #15318, #15319, and #7163, as well as providing good
support for .read, .readline, .readlines. Each of those methods respond
correctly to Ctrl+C and Ctrl+D.
Serhiy Storchaka added the comment:
The proposed patches make the behavior of sys.std* files in IDLE more similar
to the behavior of sys.std* files in standard interpreter. Now sys.stdin have
read() and readlines() methods. The source code is simplified.
--
nosy: +kbk, loewis,
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file27518/idle_stdstreams-3.3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9290
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file27519/idle_stdstreams-3.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9290
___
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file27520/idle_stdstreams-2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9290
___
Jim Jewett jimjjew...@gmail.com added the comment:
msvcrt.getwch has a similar failure, returning (2**16)-1.
Because of this, getpass.win_getpass (used as getpass.getpass on windows)
echoes the password when using Idle (even without a subprocess), but does not
echo passwords when from a
a nawil...@excite.com added the comment:
Other quirks apparently caused by this bug:
msvcrt.getch() does not block and wait for a keypress in IDLE. Returns
immediately with b'\xff'.
Some of the suggested usage in the manual for sys.stdin does not work under
IDLE. E.g. sys.stdin.detach()
Tal Einat talei...@gmail.com added the comment:
I agree that the wrapping of these in IDLE should be as transparent as possible.
It would be helpful if you could specify what other quirks you have found
regarding sys.stdin, sys.stdout and sys.stderr, preferably describing use cases
where
New submission from Geraldo Xexeo gxe...@gmail.com:
The fact that in IDLE sys.stdin is a idlelib.rpc.RPCProxy results in programs
having different behavior in IDLE and in Command Line mode.
I noticed that when grading many students exercises in IDLE. Things like:
sys.stdin.readlines()
just
17 matches
Mail list logo