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 Tuikku.Anttila, detly, docs@python, ezio.melotti, loewis, serhiy.storchaka
Date 2014-08-06.03:11:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
After further investigation it seems to me that read can't raise NotImplementedError.  ZipFile also won't raise it, but will raise a RuntimeError:
>>> zipfile.ZipFile('', 'w', compression=zipfile.ZIP_BZIP2)
RuntimeError: Compression requires the (missing) bz2 module

By looking at the code, ZipFile calls _check_compression (Lib/ and _check_compression raises RuntimeError (Lib/
ZipExtFile calls _get_decompressor (Lib/ and _get_decompressor raises NotImplemented (Lib/
This behavior seems inconsistent and perhaps should be fixed (in this case a new issue should be created), however this will probably be backward-incompatible.

Regardless of this, it seems that currently NotImplementedError can be raised in some situations, and the zipfile docs don't mention it, so the doc can still be improved.

Do you have any opinion on the aforementioned inconsistency?

Did you actually manage to get a NotImplementedError from or from somewhere else?
Date User Action Args
2014-08-06 03:11:46ezio.melottisetrecipients: + ezio.melotti, loewis, docs@python, serhiy.storchaka, detly, Tuikku.Anttila
2014-08-06 03:11:46ezio.melottisetmessageid: <>
2014-08-06 03:11:46ezio.melottilinkissue22046 messages
2014-08-06 03:11:45ezio.melotticreate