[issue25063] shutil.copyfileobj should internally use os.sendfile when possible
desbma
report at bugs.python.org
Thu Sep 10 20:38:50 CEST 2015
New submission from desbma:
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.
----------
components: Library (Lib)
messages: 250401
nosy: desbma
priority: normal
severity: normal
status: open
title: shutil.copyfileobj should internally use os.sendfile when possible
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25063>
_______________________________________
More information about the Python-bugs-list
mailing list