[issue1267] Py3K cannot run as ``python -S``

Brett Cannon report at bugs.python.org
Sat Oct 20 05:49:36 CEST 2007


Brett Cannon added the comment:

58557 as the fix.  Yes, it was stupid on OS X's part and I was lucky to
just think of the possible solution.

Basically OS X does not like it when you do stuff with a file pointer
but then poke around with the file descriptor.  That means that when
PyTokenizer_FindEncoding() seeked on the file pointer it was not being
picked up by the the file descriptor that the file pointer represented.

This suggests that perhaps we should standardize on file pointers or
file descriptors in Python to prevent something like this from happening
again.

----------
assignee: gvanrossum -> brett.cannon
status: open -> closed

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1267>
__________________________________


More information about the Python-bugs-list mailing list