Kaydet (Commit) bddc9fe2 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Issue #5319: Print an error if flushing stdout fails at interpreter

shutdown.
üst c17f1729
...@@ -12,6 +12,9 @@ What's New in Python 3.2 Alpha 2? ...@@ -12,6 +12,9 @@ What's New in Python 3.2 Alpha 2?
Core and Builtins Core and Builtins
----------------- -----------------
- Issue #5319: Print an error if flushing stdout fails at interpreter
shutdown.
- Issue #9337: The str() of a float or complex number is now identical - Issue #9337: The str() of a float or complex number is now identical
to its repr(). to its repr().
......
...@@ -320,7 +320,7 @@ flush_std_files(void) ...@@ -320,7 +320,7 @@ flush_std_files(void)
if (fout != NULL && fout != Py_None) { if (fout != NULL && fout != Py_None) {
tmp = PyObject_CallMethod(fout, "flush", ""); tmp = PyObject_CallMethod(fout, "flush", "");
if (tmp == NULL) if (tmp == NULL)
PyErr_Clear(); PyErr_WriteUnraisable(fout);
else else
Py_DECREF(tmp); Py_DECREF(tmp);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment