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

Amaury Forgeot d'Arc amauryfa at gmail.com
Thu Feb 14 15:47:55 CET 2013


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


More information about the pypy-issue mailing list