[pypy-issue] [issue1397] file stream behavior differences from cpython

Maciej Fijalkowski fijall at gmail.com
Thu Feb 14 17:02:51 CET 2013


On Thu, Feb 14, 2013 at 4:47 PM, Amaury Forgeot d'Arc
<amauryfa at gmail.com> wrote:
> 2013/2/14 bdk <tracker at bugs.pypy.org>
>>
>>
>> bdk <bdkearns at gmail.com> added the comment:
>>
>> Sure, but given that the CPython docs explicitly state a file object is a
>> wrapper on top of FILE*/to expect FILE* behavior in corner cases, and the
>> PyPy
>> ones "Differences that are not listed here should be considered bugs of
>> PyPy.",
>> I think this is worth mentioning in PyPy docs.
>>
>> Now the real question is why doesn't PyPy simply use FILE* objects? PyPy
>> should
>> either do this or fix the remaining deficiencies in the streamio.py code
>> (but
>> this seems like a waste of time vs plugging into FILE* to me).
>
>
> It's an ooold story, but I remember that streamio.py started as a "gitft
> from Guido" -- something you cannot refuse.
>
> At the time, one of PyPy directions was to rewrite every low-level library
> in Python,
> so something that bypasses libc was welcome.
>
> --
> Amaury Forgeot d'Arc

Is there any reason to keep doing that btw?


More information about the pypy-issue mailing list