Issue #14646: __import__() now sets __loader__ if need be.
importlib.util.module_for_loader also will set __loader__ along with __package__. This is in conjunction to a forthcoming update to PEP 302 which will make these two attributes required for loaders to set.
B
Brett Cannon committed
efad00d52041fedbff5d7cfadd163e228b4af519
Parent: fea73ef