Difference between __import__() and importlib.__import__()
This question asks the difference between import, __import__() and importlib.import_module(). However, it doesn't talk about importlib.__import__(). According to the docs: importlib.__import__(name, globals=None, locals=None, fromlist=(), level=0) An implementation of the built-in __import__() function. Note: Programmatic importing of modules should use import_module() instead of this function. Are importlib.__import__() and builtins.__import__() equivalent? What is "an implementation" of __import__()?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.