[issue22420] Use print(file=sys.stderr) instead of sys.stderr.write() in IDLE

2014-09-19 Thread Roundup Robot
Roundup Robot added the comment: 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

[issue22420] Use print(file=sys.stderr) instead of sys.stderr.write() in IDLE

2014-09-19 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22420 ___

[issue22420] Use print(file=sys.stderr) instead of sys.stderr.write() in IDLE

2014-09-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Reviewed the patch. Looks good to go. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22420 ___

[issue22420] Use print(file=sys.stderr) instead of sys.stderr.write() in IDLE

2014-09-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: 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. -- components: IDLE files: idle_print_stderr.patch keywords:

[issue22420] Use print(file=sys.stderr) instead of sys.stderr.write() in IDLE

2014-09-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +kbk, roger.serwy, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22420 ___

[issue22420] Use print(file=sys.stderr) instead of sys.stderr.write() in IDLE

2014-09-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: 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