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 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:55adminlinkissue966431 messages
2008-01-20 09:56:55admincreate