[issue25439] Add type checks to urllib.request.Request

Martin Panter report at bugs.python.org
Wed Oct 28 01:07:07 EDT 2015


Martin Panter added the comment:

I meant removing one of the checks in AbstractHTTPHandler.do_request_(). I left a note in the review at the relevant line.

One more thing I forgot to mention, although I am afraid it is 90% nit picking the dict iterable check. For the “http:” scheme, an iterable of “bytes-like” objects is supported (again not documented though). For HTTPS (over SSL), not every bytes-like object is supported, but common ones like bytearray() still work I think.

----------

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


More information about the Python-bugs-list mailing list