["python","python-3.x","python-3.3"]
AttributeError: 'module' object has no attribute 'request'

When I run the following code in Python 3.3: import urllib tempfile = urllib.request.urlopen("http://yahoo.com") I get the following error: I did this too to verify: What am I doing wrong?
The urllib module has been split into parts and renamed in Python 3 to urllib.request, urllib.parse, and urllib.error. Import urllib.request instead of urllib. import urllib.request