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 <rep...@bugs.python.org>
<http://bugs.python.org/issue25063>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to