New submission from Amaury Forgeot d'Arc: HTTPConnection.send() accepts a bytes string, a file, and any iterable.
When a file is passed, data is read in blocks until read() returns an empty string. But because a "return" statement is missing, execution continues with an attempt to iterate the file again... This exits quickly most of the time, but this can lead to surprising behavior if more data is available, or for custom implementations of the file object. ---------- keywords: easy messages: 177312 nosy: amaury.forgeotdarc priority: normal severity: normal status: open title: Missing "return" in HTTPConnection.send() versions: Python 3.2, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16658> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com