[issue22046] ZipFile.read() should mention that it might throw NotImplementedError
Jason Heeris
report at bugs.python.org
Wed Aug 6 09:01:31 CEST 2014
Jason Heeris added the comment:
> Python documentation never document all possible exceptions raised by a method.
No, but clearly *some* exceptions are documented, and presumably there's some reasoning behind which are and aren't.
In this case, the NotImplemented error is there by design. It's not an incidental effect of something else. It's part of the API, and it's used to indicate a common error condition: that the compression format is not supported.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22046>
_______________________________________
More information about the Python-bugs-list
mailing list