STINNER Victor <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue2384> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com