This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2014年09月15日 19:15 by serhiy.storchaka, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| idle_print_stderr.patch | serhiy.storchaka, 2014年09月15日 19:15 | review | ||
| Messages (4) | |||
|---|---|---|---|
| msg226934 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年09月15日 19:15 | |
Proposed patch replaces print(file=sys.stderr) by sys.stderr.write() in IDLE for same reason as in issue22384. May be this will eliminate some "crashes" when IDLE run with pythonw.exe. |
|||
| msg226937 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2014年09月15日 20:05 | |
You meant it the other way around 'replace sys.stderr.write() by print(file=sys.stderr)'. In the two cases where Idle exits anyway, this will not make any difference (except possible in the return code). In the other cases where Idle tries to continue, this will. The real fix needed is to replace stderr, at least when None, so that the messages are displayed in a gui widget. However, if I cannot do that this week, before 3.4.2, I will apply this. Thanks for the patch. |
|||
| msg226984 - (view) | Author: Senthil Kumaran (orsenthil) * (Python committer) | Date: 2014年09月17日 07:19 | |
Reviewed the patch. Looks good to go. |
|||
| msg227140 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2014年09月20日 02:39 | |
New changeset 90a2a12fa34d by Terry Jan Reedy in branch '2.7': Issue #22420: Avoid 'write to None' crashes by using print instead. https://hg.python.org/cpython/rev/90a2a12fa34d New changeset 42b03d5b1cbb by Terry Jan Reedy in branch '3.4': Issue #22420: Avoid 'write to None' crashes by using print instead. https://hg.python.org/cpython/rev/42b03d5b1cbb New changeset ab050bd7e51c by Terry Jan Reedy in branch 'default': Issue #22420: Merge with 3.4 https://hg.python.org/cpython/rev/ab050bd7e51c |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:08 | admin | set | github: 66610 |
| 2014年09月20日 02:41:02 | terry.reedy | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2014年09月20日 02:39:50 | python-dev | set | nosy:
+ python-dev messages: + msg227140 |
| 2014年09月17日 07:19:48 | orsenthil | set | nosy:
+ orsenthil messages: + msg226984 |
| 2014年09月15日 20:05:04 | terry.reedy | set | messages: + msg226937 |
| 2014年09月15日 19:15:48 | serhiy.storchaka | set | nosy:
+ terry.reedy, kbk, roger.serwy |
| 2014年09月15日 19:15:20 | serhiy.storchaka | create | |