homepage

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 ezio.melotti
Recipients chris.jerdonek, docs@python, ezio.melotti, orsenthil
Date 2012年09月17日.11:58:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347883087.93.0.826021213894.issue15922@psf.upfronthosting.co.za>
In-reply-to
Content
+ >>> try:
+ ... urllib.request.urlopen(req)
+ ... except urllib.error.URLError as e:
+ ... print("Error opening url.")
+ ... # E.g. "[Errno 8] nodename nor servname provided, or not known"
+ ... print("Reason:", e.reason) #doctest: +ELLIPSIS
+ Error opening url.
+ Reason: ...
I think the previous version was clearer, so maybe this should be a skip.
History
Date User Action Args
2012年09月17日 11:58:07ezio.melottisetrecipients: + ezio.melotti, orsenthil, chris.jerdonek, docs@python
2012年09月17日 11:58:07ezio.melottisetmessageid: <1347883087.93.0.826021213894.issue15922@psf.upfronthosting.co.za>
2012年09月17日 11:58:07ezio.melottilinkissue15922 messages
2012年09月17日 11:58:07ezio.melotticreate

AltStyle によって変換されたページ (->オリジナル) /