[issue2384] [Py3k] line number is wrong after encoding declaration
STINNER Victor
report at bugs.python.org
Mon Oct 6 23:53:33 CEST 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
benjamin was afraid by the comment /* dirty hack */ in my previous
comment. After reading tokenizer.c again and again, I can say that the
fix is correct: the file is closed and then re-opened by fp_setreadl()
(using io.open()), and so the file cursor goes back to the file start.
Added file: http://bugs.python.org/file11717/tokenizer-coding-3.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2384>
_______________________________________
More information about the Python-bugs-list
mailing list