Message196671
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. |
|
Date |
User |
Action |
Args |
2013-08-31 20:46:08 | brett.cannon | set | recipients:
+ brett.cannon, terry.reedy |
2013-08-31 20:46:08 | brett.cannon | set | messageid: <1377981968.91.0.701350985576.issue18831@psf.upfronthosting.co.za> |
2013-08-31 20:46:08 | brett.cannon | link | issue18831 messages |
2013-08-31 20:46:08 | brett.cannon | create | |
|