[New-bugs-announce] [issue25980] not able to find module request in lib urllib - Python35-32

Kiran Kotari report at bugs.python.org
Wed Dec 30 05:15:37 EST 2015


New submission from Kiran Kotari:

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())

----------
components: Library (Lib)
messages: 257230
nosy: Kiran Kotari
priority: normal
severity: normal
status: open
title: not able to find module request in lib urllib - Python35-32
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25980>
_______________________________________


More information about the New-bugs-announce mailing list