Martin Panter added the comment:

I agree it is a nice idea, but have the same concern as David. Many pseudo file 
objects wrap real file descriptors. E.g. BufferedReader hides unread data in a 
buffer, GzipFile decompresses data, HTTPResponse decodes chunks. Detecting when 
sendfile() is appropriate would be hard to do. And I understand some platforms 
only support sockets.

Also I notice that 3.5 has a new socket.sendfile() method (Issue 17552), which 
partly overlaps with this proposal. BTW the 3.4 os documentation should not 
mention the socket method, but it does!

----------
nosy: +martin.panter
type:  -> enhancement

_______________________________________
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