Skip to content

Instantly share code, notes, and snippets.

@mitsuhiko
Created April 15, 2014 13:47
Show Gist options
  • Save mitsuhiko/10734180 to your computer and use it in GitHub Desktop.
Save mitsuhiko/10734180 to your computer and use it in GitHub Desktop.
>>> loader = machinery.SourceFileLoader('plugin_base', '/tmp/test.py')
>>> loader.create_module()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'SourceFileLoader' object has no attribute 'create_module'
>>> isinstance(loader, importlib.abc.Loader)
True
>>> importlib.abc.Loader.create_module
<function Loader.create_module at 0x10b84de18>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment