New submission from Giampaolo Rodola' <g.rod...@gmail.com>:

In attachment.
This is actually just an excuse to store the patch somewhere and possibly 
collect opinions as I don't really think this should go in because:

- it's UNIX only
- as such, deciding whether using sendfile() should probably be done silently 
(no explicit argument)
- on the other hand, I don't think it's safe to decide this automatically 
because:
    - the input fd should be a regular file and it's not clear how to determine 
this beforehand 
    - in case of disconnection OSError is raised instead of socket.error (minor 
backward compatibility issue)

----------
files: ftplib-sendfile.patch
keywords: patch
messages: 149076
nosy: giampaolo.rodola
priority: normal
severity: normal
stage: patch review
status: open
title: ftplib and sendfile()
type: feature request
versions: Python 3.3
Added file: http://bugs.python.org/file23890/ftplib-sendfile.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13564>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to