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 vstinner
Recipients serhiy.storchaka, vstinner
Date 2015-03-24.15:04:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
While working on the PEP 475, I modified _Py_fopen_obj() to raise the OSError (instead of raising the exception from the call site). The zipimport uses _Py_fopen_obj() but it didn't raise OSError, only ZipImportError. I modified the zipimport module to raise a chained exception: OSError chained to ZipImportError: see issue #23696.

Other functions using _PyErr_ChainExceptions():

- open() ( if open() failed and f.close() raised an exception, chain the two exceptions
- io.FileIO.close
- io.TextIOWrapper.close
- io.BufferedReader.close, io.BufferedWriter.close
- _Py_CheckFunctionResult(), new function introduced in the issue #23571
Date User Action Args
2015-03-24 15:04:52vstinnersetrecipients: + vstinner, serhiy.storchaka
2015-03-24 15:04:52vstinnersetmessageid: <>
2015-03-24 15:04:52vstinnerlinkissue23763 messages
2015-03-24 15:04:52vstinnercreate