Message60496
Logged In: YES
user_id=595483
The error seems to be due to the calling sequence of
add_submodule and loadmodule in import.c:import_submodule.
If load_module(..) is called after add_submodule(...) gets
called, the above does not trigger Attribute Error.
I made a patch that does it, but there is a problem...
Currently, when import produces errors, sys.modules have the
damaged module, but the patch does not. (That's why it
cannot pass the test_pkgimport.py unittest, I think.)
Someone who knows more about import.c could fix the patch to
behave like that.
The patch is in
http://seojiwon.dnip.net:8000/~jiwon/tmp/import.diff |
|
Date |
User |
Action |
Args |
2008-01-20 09:56:55 | admin | link | issue966431 messages |
2008-01-20 09:56:55 | admin | create | |
|