Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 46299:e8916c64df4c
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...
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Fri, 04 Apr 2008 23:25:27 +0000 |
| parents | 61c92923cf7f |
| children | 23ab586c427a |
comparison
equal
deleted
inserted
replaced
| 46297:f806fd9941da | 46299:e8916c64df4c |
|---|
