[issue1267] Py3K cannot run as ``python -S``
Brett Cannon
report at bugs.python.org
Sat Oct 20 04:17:04 CEST 2007
Brett Cannon added the comment:
OK, for some reason, when PyTokenizer_FindEncoding() is called and the
resulting file is big enough, it starts off with a seek position
(according to TextIOWrapper.tell()) of 4096. That happens to be exactly
half the size of the buffer used by io.
But I am not sure what the magical size is as creating a file of 4095,
4096, and 4097 bytes does not trigger this bug.
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1267>
__________________________________
More information about the Python-bugs-list
mailing list