Message162364
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. |
File name |
Uploaded |
imptest.py
|
jpe,
2012-06-05.18:49:09
|
|
Date |
User |
Action |
Args |
2012-06-05 18:49:11 | jpe | set | recipients:
+ jpe, brett.cannon, pitrou, benjamin.peterson, eric.araujo, Arfrever, meador.inge, python-dev, eric.snow, berker.peksag |
2012-06-05 18:49:10 | jpe | link | issue13959 messages |
2012-06-05 18:49:09 | jpe | create | |
|