[issue23740] http.client request and send method have some datatype issues

R. David Murray report at bugs.python.org
Mon Mar 23 02:50:15 CET 2015


R. David Murray added the comment:

Yeah, if we're going to check the type for iterables to convert strings, we might as well check the type for read() as well.

The bit about the len not being set except for str and bytes was me mis-remembering what I read in the code.  (The isinstance check is about whether _send_output sends the body in the same packet.)

----------

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


More information about the Python-bugs-list mailing list