[Python-3000] [Python-Dev] What is the status of file.readinto?

Jean-Paul Calderone exarkun at divmod.com
Sun Aug 13 05:21:49 CEST 2006


On Sat, 12 Aug 2006 19:28:44 -0700, Guido van Rossum <guido at python.org> wrote:
>On 8/12/06, "Martin v. Löwis" <martin at v.loewis.de> wrote:
>> I can only guess why it may go away; my guess it will go away when
>> the buffer interface is removed from Python (then it becomes
>> unimplementable).
>
>In Py3k, the I/O APIs will be redesigned, especially the binary ones.
>My current idea is to have read() on a binary file return a bytes
>object. If readinto() continues to be necessary, please make sure the
>Py3k list (python-3000 at python.org) knows about your use case. We
>aren't quite writing up the I/O APIs in PEP-form, but when we do, that
>would be the right time to speak up.
>

The ability to read into pre-allocated memory is fairly important
for high-performance applications.  This should be preserved somehow
(and preferably given a real, supported API).

Jean-Paul


More information about the Python-3000 mailing list