mirror of
https://github.com/python/cpython.git
synced 2026-08-11 01:17:41 +08:00
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...