]> granicus.if.org Git - python/commitdiff
bpo-36064: Clarify allowed data types for urllib.request.Request. (GH-11990)
authorJulien Palard <julien@palard.fr>
Fri, 29 Mar 2019 02:15:34 +0000 (03:15 +0100)
committerCarol Willing <carolcode@willingconsulting.com>
Fri, 29 Mar 2019 02:15:34 +0000 (19:15 -0700)
Doc/library/urllib.request.rst

index 289bfcaebc3d7a64ff92b7c7d093a2c2ae3a96a8..f56da1b341fec4e5eaa387bbe7c7e615c71691b2 100644 (file)
@@ -192,8 +192,8 @@ The following classes are provided:
    *data* must be an object specifying additional data to send to the
    server, or ``None`` if no such data is needed.  Currently HTTP
    requests are the only ones that use *data*.  The supported object
-   types include bytes, file-like objects, and iterables.  If no
-   ``Content-Length`` nor ``Transfer-Encoding`` header field
+   types include bytes, file-like objects, and iterables of bytes-like objects.
+   If no ``Content-Length`` nor ``Transfer-Encoding`` header field
    has been provided, :class:`HTTPHandler` will set these headers according
    to the type of *data*.  ``Content-Length`` will be used to send
    bytes objects, while ``Transfer-Encoding: chunked`` as specified in