New submission from Joshua Chin:

The documentation for urlopen states that it "Raises URLError on errors." 
However, urlopen can raise a ValueError. In fact, test_urllib. 
urlopen_FileTests.test_relativelocalfile  specifically checks if urlopen raises 
a ValueError. I suggest removing the guarantee from the documentation.

----------
assignee: docs@python
components: Documentation
files: urlopen_doc.patch
keywords: patch
messages: 230640
nosy: Joshua.Chin, docs@python, orsenthil
priority: normal
severity: normal
status: open
title: urllib.request.urlopen documentation falsely guarantees that a URLError 
will be raised on errors
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file37129/urlopen_doc.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22797>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to