Message238811
| Author |
serhiy.storchaka |
| Recipients |
docs@python, martin.panter, serhiy.storchaka |
| Date |
2015年03月21日.15:53:45 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1426953225.8.0.253757472352.issue23360@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年03月21日 15:53:45 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, docs@python, martin.panter |
| 2015年03月21日 15:53:45 | serhiy.storchaka | set | messageid: <1426953225.8.0.253757472352.issue23360@psf.upfronthosting.co.za> |
| 2015年03月21日 15:53:45 | serhiy.storchaka | link | issue23360 messages |
| 2015年03月21日 15:53:45 | serhiy.storchaka | create |
|