]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Emphasize that people should not override __import__.
authorBrett Cannon <brett@python.org>
Fri, 23 Aug 2013 14:58:49 +0000 (10:58 -0400)
committerBrett Cannon <brett@python.org>
Fri, 23 Aug 2013 14:58:49 +0000 (10:58 -0400)
commitf5ebd264032fbcb07a41a49031c2281f81c9a814
tree3befe71dd78d52f0bdbe0222f9eed08ef7f0bba3
parent01e75a699d2fd8e9dbfa428412da2a7d1b0af257
Emphasize that people should not override __import__.

With importlib getting used more and more, changing __import__ will
not work as well as people used to hope as it will potentially bypass
importers, etc. It also will not work with importlib.import_module()
as it uses "importlib.__import__" (i.e. importlib's implementation of
import) directly and not builtins.__import__.
Doc/library/functions.rst