This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, kbk, mark
Date 2008-04-04.22:56:44
SpamBayes Score 0.00740352
Marked as misclassified No
Message-id <1207349821.12.0.571644754959.issue2221@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is just that in Python/pythonrun.c, the function run_mod()
calls flush_io() after executing the code. In our testcase, there is a
pending exception.
But flush_io() silently ignore errors (which is fine), and clears all
exception info (which is bad).
To correct the problem, I it is enough to calls to
PyErr_Fetch/PyErr_Restore.

This happens only with Idle, probably because the subprocess redirected
its stdout to a pseudo-file that does not support flush().
History
Date User Action Args
2008-04-04 22:57:01amaury.forgeotdarcsetspambayes_score: 0.00740352 -> 0.00740352
recipients: + amaury.forgeotdarc, kbk, mark
2008-04-04 22:57:01amaury.forgeotdarcsetspambayes_score: 0.00740352 -> 0.00740352
messageid: <1207349821.12.0.571644754959.issue2221@psf.upfronthosting.co.za>
2008-04-04 22:56:45amaury.forgeotdarclinkissue2221 messages
2008-04-04 22:56:44amaury.forgeotdarccreate