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 brett.cannon
Recipients brett.cannon, terry.reedy
Date 2013-08-31.20:46:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377981968.91.0.701350985576.issue18831@psf.upfronthosting.co.za>
In-reply-to
Content
help(__import__) doesn't mention anything about overriding the function. I already touched up the stdlib docs for builtins.__import__ to strongly advise you don't override the function.

As for overriding importlib.__import__, it won't do anything; the code for importlib.import_module() cuts through the cruft in __import__ that is unneeded and skips straight to the relevant code.
History
Date User Action Args
2013-08-31 20:46:08brett.cannonsetrecipients: + brett.cannon, terry.reedy
2013-08-31 20:46:08brett.cannonsetmessageid: <1377981968.91.0.701350985576.issue18831@psf.upfronthosting.co.za>
2013-08-31 20:46:08brett.cannonlinkissue18831 messages
2013-08-31 20:46:08brett.cannoncreate