3445330a_nacher_s_Thoughts_and_Writings__e_in_Python_3__unicode____str_
[Type] URLs
unicode, but some APIs also accept byte strings. Special attention: your URLs have to be encoded in UTF-8 in order to use all of the standard library functions.
Writing Forwards Compatible Python Code | Armin Ronacher's Thoughts and Writings
Type in Python 3 (unicode == str)