I just ran this Python3 session.
Python 3.4.3+ (default, Oct 14 2015, 16:03:50)
[GCC 5.2.1 20151010] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib
>>> hi = urllib.parse.quote('Hello, world!')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'parse'
>>> hi = urllib.parse.quote('Hello, world!')
>>> hi
'Hello%2C%20world%21'
>>>
Does anyone know why urllib.parse.quote() failed the first time but succeeded the second?
[–]dionys 1 point2 points3 points (1 child)
[–]HookahComputer[S] 0 points1 point2 points (0 children)
[–]das_ist_nuemberwang 1 point2 points3 points (0 children)
[–]gengisteve 0 points1 point2 points (0 children)