[issue3137] Python doesn't handle SIGINT well if it arrives during interpreter startup

STINNER Victor report at bugs.python.org
Mon Mar 8 13:21:51 CET 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

tok_stdin_decode() clears error without check for the type. 

tokenizer_error.patch stops the tokenizer with an E_ERROR if the exception is not an UnicodeDecodeError. Fix also err_input() to support E_ERROR: leave the global exception (PyErr_*) unchanged.

----------
Added file: http://bugs.python.org/file16492/tokenizer_error.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3137>
_______________________________________


More information about the Python-bugs-list mailing list