Author brett.cannon
Recipients Arfrever, aronacher, brett.cannon, eric.snow, ncoghlan, rhettinger
Date 2014-05-18.22:32:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400452340.19.0.0664104018147.issue20383@psf.upfronthosting.co.za>
In-reply-to
Content
Here is an implementation of importlib.util.module_from_spec(). With this it makes PEP 451 conceptually work like:

  spec = importlib.util.find_spec(name)
  module = importlib.util.module_from_spec(spec)
  spec.loader.exec_module(module)

About the only other thing I can think of that people might still want is something like `importlib.util.load(spec)` so that they don't even need to care about whether load_module() or exec_module() is defined, but that can be a separate issue if it turns out people actually want something like that.
History
Date User Action Args
2014-05-18 22:32:21brett.cannonsetrecipients: + brett.cannon, rhettinger, ncoghlan, aronacher, Arfrever, eric.snow
2014-05-18 22:32:20brett.cannonsetmessageid: <1400452340.19.0.0664104018147.issue20383@psf.upfronthosting.co.za>
2014-05-18 22:32:20brett.cannonlinkissue20383 messages
2014-05-18 22:32:19brett.cannoncreate