[issue12955] urllib.request example should use "with ... as:"
Éric Araujo
report at bugs.python.org
Sat Sep 17 17:31:04 CEST 2011
Éric Araujo <merwok at netwok.org> added the comment:
[Terry]
> But when I add 'http:www.python.org' as an argument, I get
> urllib.error.URLError: <urlopen error no host given>
Your URI lacks a host (netloc, in RFC parlance) component:
>>> urllib.parse.urlparse('http:python.org')
ParseResult(scheme='http', netloc='', path='python.org', params='', query='', fragment='')
----------
nosy: +eric.araujo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12955>
_______________________________________
More information about the Python-bugs-list
mailing list