This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients ezio.melotti, martin.panter
Date 2015-10-19.10:34:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Type checking on the URL should be reasonably straightforward.

For the request data, the question is what types do we currently support? This may be a can of worms. We would have to be careful not to break existing use cases, even undocumented ones.

Looking at Issue 23740, the underlying “http.client” accepts a variety of data types (bytes, Latin-1 str, iterables, files), and this support varies depending if the Content-Length header is supplied. I don’t think all combinations work with urlopen(), but judging by Issue 5038, there is at least partial support for bytes-like, iterables, and file objects.
Date User Action Args
2015-10-19 10:34:15martin.pantersetrecipients: + martin.panter, ezio.melotti
2015-10-19 10:34:15martin.pantersetmessageid: <>
2015-10-19 10:34:15martin.panterlinkissue25439 messages
2015-10-19 10:34:15martin.pantercreate