This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients Arfrever, Borisd13, Claudiu.Popa, brett.cannon, eric.snow, martin.panter, ncoghlan, nikicat, srittau
Date 2015-12-04.23:56:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449273406.42.0.0745844453097.issue21436@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3.5 lets you do:

  spec = importlib.util.spec_from_file_location('what.ever', 'foo.py')
  module = importlib.util.module_from_spec(spec)
  spec.loader.exec_module(module)

I am satisfied that case for loading from a file is easy enough to not warrant keeping load_module() around just for this use case.
History
Date User Action Args
2015-12-04 23:56:46brett.cannonsetrecipients: + brett.cannon, srittau, ncoghlan, Arfrever, Claudiu.Popa, eric.snow, Borisd13, martin.panter, nikicat
2015-12-04 23:56:46brett.cannonsetmessageid: <1449273406.42.0.0745844453097.issue21436@psf.upfronthosting.co.za>
2015-12-04 23:56:46brett.cannonlinkissue21436 messages
2015-12-04 23:56:46brett.cannoncreate