This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Kiran Kotari
Recipients Kiran Kotari
Date 2015-12-30.10:15:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1451470537.42.0.459983444208.issue25980@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3.5.1 documentation code giving following error:

Error: 
Traceback (most recent call last):
  File ".\urllib1.py", line 5, in <module>
    with urllib.request.urlopen('http://www.py4inf.com/code/romeo.txt') as f:
AttributeError: module 'urllib' has no attribute 'request'

Python Code:

import urllib
with urllib.request.urlopen('http://www.py4inf.com/code/romeo.txt') as f:
    print(f.read())
History
Date User Action Args
2015-12-30 10:15:37Kiran Kotarisetrecipients: + Kiran Kotari
2015-12-30 10:15:37Kiran Kotarisetmessageid: <1451470537.42.0.459983444208.issue25980@psf.upfronthosting.co.za>
2015-12-30 10:15:37Kiran Kotarilinkissue25980 messages
2015-12-30 10:15:37Kiran Kotaricreate