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 desbma
Recipients desbma
Date 2015-09-10.18:38:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441910330.09.0.484556764779.issue25063@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry if it has already been discussed, or if this is a stupid idea.

By looking at the signature, my thought was that the only use of shutil.copyfileobj was to wrap the use of sendfile, and use a fallback if it is not available on the system or not usable with "fake" Python files (not having a file descriptor, eg. like gzip.GzipFile).

By looking at the implementation, I was surprised that it does not try to call os.sendfile.
History
Date User Action Args
2015-09-10 18:38:50desbmasetrecipients: + desbma
2015-09-10 18:38:50desbmasetmessageid: <1441910330.09.0.484556764779.issue25063@psf.upfronthosting.co.za>
2015-09-10 18:38:50desbmalinkissue25063 messages
2015-09-10 18:38:49desbmacreate