[issue22797] urllib.request.urlopen documentation falsely guarantees that a URLError will be raised on errors

2014-11-04 Thread Joshua Chin
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

[issue22797] urllib.request.urlopen documentation falsely guarantees that a URLError will be raised on errors

2014-11-04 Thread Joshua Chin
Changes by Joshua Chin joshuarc...@gmail.com: Added file: http://bugs.python.org/file37131/urlopen_doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22797

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-10-30 Thread Joshua Chin
New submission from Joshua Chin: Currently, in-place operations on 'collections.Counter' with unsupported types raises an 'AttributeError'. Example: import collections counter = collections.Counter() counter += 1 Traceback (most recent call last): File stdin, line 1, in module File