STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Here is a patch for trunk. This bug is minor, and so I don't know if it can be 
commited to 2.7.

The patch adds also a test that I added to py3k in r81252:

"handle_system_exit() flushs files to warranty the output order

PyObject_Print() writes into the C object stderr, whereas PySys_WriteStderr() 
writes into the Python object sys.stderr. Each object has its own buffer, so 
call sys.stderr.flush() and fflush(stderr)."

----------
keywords: +patch
nosy: +benjamin.peterson, haypo
Added file: 
http://bugs.python.org/file17434/handle_system_exit_unicode-trunk.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue3798>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to