STINNER Victor <victor.stin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue3137>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to