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 eric.snow
Recipients barry, brett.cannon, eric.snow, ncoghlan, r.david.murray, syeberman, terry.reedy
Date 2016-09-12.19:22:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473708157.4.0.90888760485.issue28007@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a patch to soften the impact of pyc-related problems.

Note:
* Each pyc-related case that previously caused import to fail now results in an ImportWarning.  This applies to both reading and writing .pyc files.
* Each warning has __cause__ set to the caught exception.
* Some cases where the exception was already being swallowed now result in a warning while others are still swallowed.
* The tests verify that the warnings, with appropriate causes, are issued.
* The tests verify that existing bad .pyc file get overwritten.
* importlib._bootstrap_external.StaleBytecodeError is new.  It should surface only from SourcelessFileLoader.
* SourcelessFileLoader is not changed.
History
Date User Action Args
2016-09-12 19:22:38eric.snowsetrecipients: + eric.snow, barry, brett.cannon, terry.reedy, ncoghlan, syeberman, r.david.murray
2016-09-12 19:22:37eric.snowsetmessageid: <1473708157.4.0.90888760485.issue28007@psf.upfronthosting.co.za>
2016-09-12 19:22:37eric.snowlinkissue28007 messages
2016-09-12 19:22:37eric.snowcreate