Message336198
I found out in the docs 3.6, in the class urllib.request.Request, for the input of 'data' data types, it says :
"The supported object types include bytes, file-like objects, and iterables."
But after testing it with data type dict for the 'data' input, I got error of:
"can't concat str to bytes"
It seems the docs should't say the 'data' data types support iterables.
There more detail discussion is at : https://stackoverflow.com/questions/54802272/some-fundamental-concept-used-in-python-docs
Hope this helps, thanks ! |
|
Date |
User |
Action |
Args |
2019-02-21 10:23:41 | sylye | set | recipients:
+ sylye, docs@python |
2019-02-21 10:23:41 | sylye | set | messageid: <1550744621.39.0.0634252256257.issue36064@roundup.psfhosted.org> |
2019-02-21 10:23:41 | sylye | link | issue36064 messages |
2019-02-21 10:23:41 | sylye | create | |
|