Brett Cannon added the comment:

On 10/19/07, Christian Heimes <[EMAIL PROTECTED]> wrote:
>
> Christian Heimes added the comment:
>
> Brett Cannon wrote:
> > This suggests that perhaps we should standardize on file pointers or
> > file descriptors in Python to prevent something like this from happening
> > again.
>
> rewind() it used couple of times in the Python code. Have you checked if
> the other calls are safe?
>

No.  I am still rather frustrated that was the problem.

The only reason I feel safe with this solution is that the file
pointer is not directly used except by _fileio to get the file
descriptor.  I would not trust this if the file pointer and file
descriptor had intertwined uses.  But I would trust rewind() if the
file pointer is used the entire time.

> Thx for finding the bug :) Great work!

Thanks.  I just wish this whole ordeal had not been necessary (filed a
bug report with Apple in hopes that this can be prevented for someone
else).  I can see why some people prefer to hack on PyPy, IronPython,
or Jython instead of dealing with the joys of C.  =)

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1267>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to