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 srittau
Recipients srittau
Date 2014-05-05.12:00:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399291208.69.0.802643633069.issue21436@psf.upfronthosting.co.za>
In-reply-to
Content
It was very easy to load plugin files in Python 2:

import imp
my_module = imp.load_source("what.ever", "foo.py")

Unfortunately, this became much more obscure in Python 3.3:

import importlib.machinery
loader = importlib.machinery.SourceFileLoader("what.ever", "foo.py")
my_module = loader.load_module("what.ever")

In Python 3.4 even this has been deprecated. There should be a way (preferable an easy-to-use one) to load a Python module by filename or by stream.
History
Date User Action Args
2014-05-05 12:00:08srittausetrecipients: + srittau
2014-05-05 12:00:08srittausetmessageid: <1399291208.69.0.802643633069.issue21436@psf.upfronthosting.co.za>
2014-05-05 12:00:08srittaulinkissue21436 messages
2014-05-05 12:00:08srittaucreate