[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 :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 '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

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-09-15 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +kbk, roger.serwy, terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: patch
messages: 226934
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Use print(file=sys.stderr) instead of sys.stderr.write() in IDLE
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file36627/idle_print_stderr.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com