Message56599
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. =) |
|
| Date |
User |
Action |
Args |
| 2007-10-20 04:06:24 | brett.cannon | set | spambayes_score: 0.00944612 -> 0.009446115 recipients:
+ brett.cannon, gvanrossum, christian.heimes |
| 2007-10-20 04:06:24 | brett.cannon | link | issue1267 messages |
| 2007-10-20 04:06:23 | brett.cannon | create | |
|