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 r.david.murray
Recipients desbma, r.david.murray
Date 2015-09-10.19:10:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441912204.18.0.412031551142.issue25063@psf.upfronthosting.co.za>
In-reply-to
Content
No, it's to copy file like objects that aren't necessarily true file system objects.  The only requirement is that they support a minimal file-like object interface.  There is no suggestion or requirement that the object supports file descriptors (which would make it a real os file object).

I think changing it to use os.sendfile if possible would be too risky in terms of causing unexpected breakage (objects that look like they have a file descriptor but really don't), especially since handling file system files is explicitly not the purpose of copyfileobj.
History
Date User Action Args
2015-09-10 19:10:04r.david.murraysetrecipients: + r.david.murray, desbma
2015-09-10 19:10:04r.david.murraysetmessageid: <1441912204.18.0.412031551142.issue25063@psf.upfronthosting.co.za>
2015-09-10 19:10:04r.david.murraylinkissue25063 messages
2015-09-10 19:10:04r.david.murraycreate