[issue3243] Support iterable bodies in httplib
Antoine Pitrou
report at bugs.python.org
Tue Nov 30 14:27:50 CET 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> pitrou: actually that seems a bit suspect now... you need to handle
> 'data' differently depending on its type,
Yes, but you can't know all appropriate types in advance, so it's better
to try and catch the TypeError.
I don't understand your changes in Lib/urllib/request.py. len(data) will
raise anyway.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3243>
_______________________________________
More information about the Python-bugs-list
mailing list