]> granicus.if.org Git - python/commit
Issue2221: in Idle, exec('xx') raised a SystemError('error return without exception...
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Fri, 4 Apr 2008 23:25:27 +0000 (23:25 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Fri, 4 Apr 2008 23:25:27 +0000 (23:25 +0000)
commit9ed77358d618e4c65fbe5df67a87618be29fc391
tree20eff232a288142e83f20de808626c9c3c8fbeec
parentbff533b4798de3909b53dc2d14d9b074587c17ac
Issue2221: in Idle, exec('xx') raised a SystemError('error return without exception set')
instead of the expected NameError

This happens when sys.stdout is redirected to something that cannot flush().
the flush_io() function must be exception-neutral: don't raise, and don't clear exceptions.

Next step: exec() is not supposed to flush sys.stdout...
Lib/test/test_builtin.py
Python/pythonrun.c