sbt <shibt...@gmail.com> added the comment: Attached is a patch for the default branch.
Before calling PyFile_WriteString() the patch saves the current exception. Then it calls PyErr_CheckSignals() and clears the current exception if any. After calling PyFile_WriteString() the exception is restored. I am not sure this is an appropriate fix. ---------- components: +Interpreter Core keywords: +patch Added file: http://bugs.python.org/file24106/traceback_checksignals.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13673> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com