Serhiy Storchaka added the comment:

The documentation looks contradictory. "The *data* argument must be", but "The 
*data* argument may also be". "must be a bytes object", but "If *data* is a 
buffer".

Why not write just "The data argument must be a bytes-like object, an iterable 
of bytes-like objects, or None"? It doesn't depend if url is a string or a 
Request object.

AFAIK the data argument of Request can be an iterable of bytes-like objects in 
additional to a bytes-like object or None.

The note about the application/x-www-form-urlencoded format is applied not only 
to a bytes object, but to an iterable of bytes-like objects too. I.e. to any 
acceptable value except None.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23360>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to