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 jpe
Recipients Arfrever, benjamin.peterson, berker.peksag, brett.cannon, eric.araujo, eric.snow, jpe, meador.inge, pitrou, python-dev
Date 2012-06-05.18:49:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <4FCE549C.8000605@wingware.com>
In-reply-to <1338916136.25.0.844778100561.issue13959@psf.upfronthosting.co.za>
Content
On 6/5/12 1:08 PM, Brett Cannon wrote:
>
> Brett Cannon<brett@python.org>  added the comment:
>
> Does it work in Python 3.2, John? If it does then it's just an oversight thanks to the lack of tests in test_imp and it shouldn't be too difficult to support.
>
> But do realize I have deprecated the function. =)

Attached is a short test file to demonstrate this.  It assumes the 
standard win32 layout, but shouldn't be hard to modify.  It does work in 
Python 3.2, but the else: clause in 3.3's imp.load_module function 
raises an ImportError.  I think the fix is to add an elif C_EXTENSION: 
clause that loads the .so / .pyd.

I've already rewritten my code to use importlib when running in Python 3.3.
Files
File name Uploaded
imptest.py jpe, 2012-06-05.18:49:09
History
Date User Action Args
2012-06-05 18:49:11jpesetrecipients: + jpe, brett.cannon, pitrou, benjamin.peterson, eric.araujo, Arfrever, meador.inge, python-dev, eric.snow, berker.peksag
2012-06-05 18:49:10jpelinkissue13959 messages
2012-06-05 18:49:09jpecreate