Message60496
| Author |
jiwon |
| Recipients |
| Date |
2004年06月05日.23:18:06 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年01月20日 09:56:55 | admin | link | issue966431 messages |
| 2008年01月20日 09:56:55 | admin | create |
|