Message56599
| Author |
brett.cannon |
| Recipients |
brett.cannon, christian.heimes, gvanrossum |
| Date |
2007年10月20日.04:06:23 |
| SpamBayes Score |
0.009446115 |
| Marked as misclassified |
No |
| Message-id |
<bbaeab100710192106o1e9709datc8997a1cac8e7eec@mail.gmail.com> |
| In-reply-to |
<47197D33.9030004@cheimes.de> |
| Content |
On 10/19/07, Christian Heimes <report@bugs.python.org> 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. =) |
|