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 martin.panter
Recipients desbma, josh.r, martin.panter, r.david.murray
Date 2015-10-31.08:08:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446278880.37.0.421335821887.issue25156@psf.upfronthosting.co.za>
In-reply-to
Content
Also, man pages for Free BSD and OS X (where writing to a disk file is not supported) say it raises:

* ENOTSUP if “the ‘fd’ argument does not refer to a regular file”
* EBADF if “the ‘s’ argument is not a valid socket descriptor”
* ENOTSOCK if “the ‘s’ argument is not a socket”
* EOPNOTSUPP if “the file system for descriptor fd does not support sendfile()”

It is not clear what the priority of these errors is, so it might be safest to catch them all. But I wouldn’t catch any arbitrary OSError, because you may end up doing weird double copying or something for an out-of-space error.
History
Date User Action Args
2015-10-31 08:08:00martin.pantersetrecipients: + martin.panter, r.david.murray, desbma, josh.r
2015-10-31 08:08:00martin.pantersetmessageid: <1446278880.37.0.421335821887.issue25156@psf.upfronthosting.co.za>
2015-10-31 08:08:00martin.panterlinkissue25156 messages
2015-10-31 08:08:00martin.pantercreate