This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients YoSTEALTH, martin.panter
Date 2018-01-11.00:58:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1515632283.8.0.467229070634.issue32529@psf.upfronthosting.co.za>
In-reply-to
Content
Looks like you want to use a "readinto" method to reduce data copying.

One problem is that it is not specified exactly what kind of object "copyfileobj" supports reading from. The documentation only says "file-like". According to the glossary, this means io.RawIOBase, BufferedIOBase, or TextIOBase. However TextIOBase doesn't have a "readinto" method. And it wouldn't be hard to find that someone has written their own class that doesn't have "readinto" either.

The other problem is you still need to support a negative "length" value, which is easier to do by calling "read".
History
Date User Action Args
2018-01-11 00:58:03martin.pantersetrecipients: + martin.panter, YoSTEALTH
2018-01-11 00:58:03martin.pantersetmessageid: <1515632283.8.0.467229070634.issue32529@psf.upfronthosting.co.za>
2018-01-11 00:58:03martin.panterlinkissue32529 messages
2018-01-11 00:58:03martin.pantercreate