[issue3243] Support iterable bodies in httplib

Xuanji Li report at bugs.python.org
Thu Dec 2 04:20:05 CET 2010


Xuanji Li <xuanji at gmail.com> added the comment:

Actually I don't think you can go around changing test_urllib2.py, they are after all regression tests... and surely some users will send "" as data.

My patch handles the case of 0-length data specially, removing the need for 2) Can call len but not buffer: assume len == #bytes

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3243>
_______________________________________


More information about the Python-bugs-list mailing list