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 brett.cannon, eric.snow, vstinner
Date 2016-03-24.20:49:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458852548.65.0.231303030909.issue26637@psf.upfronthosting.co.za>
In-reply-to
Content
I will reply to my own question: in fact, ImportError is more convenient. The "try/except ImportError" pattern is common, in some cases, it's acceptable to skip a whole module. For a direct example on import during Python shutdown, see the issue #21925: "ResourceWarning sometimes doesn't display" which adds "try/except ImportError" to be able to log warnings.

@Brett, Eric: So, do you like importlib_shutdown-2.patch?
History
Date User Action Args
2016-03-24 20:49:08vstinnersetrecipients: + vstinner, brett.cannon, eric.snow
2016-03-24 20:49:08vstinnersetmessageid: <1458852548.65.0.231303030909.issue26637@psf.upfronthosting.co.za>
2016-03-24 20:49:08vstinnerlinkissue26637 messages
2016-03-24 20:49:08vstinnercreate