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 eric.snow
Recipients amaury.forgeotdarc, brett.cannon, eric.snow, georg.brandl, pitrou
Date 2012-07-28.19:51:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343505106.36.0.845953118677.issue15425@psf.upfronthosting.co.za>
In-reply-to
Content
Perhaps this should be split into two issues, as the fix will likely be different for the two.

For the first part (SyntaxError), my initial impression is that this will require a similar fix, or extension of it, to the one in issue15110.  That fix was limited just to the execution of the module, while this problem happens earlier (during the compilation step in SourceLoader.get_code()).  

For the second part, it is all about failures during the execution of an import that was initiated during the import of another module.  That traceback is definitely less than helpful.  A better traceback would is doable.

For both (and maybe for issue15110) we should explore using exception chaining to separate the import portion from the rest.  I see about working on a patch later this evening.
History
Date User Action Args
2012-07-28 19:51:46eric.snowsetrecipients: + eric.snow, brett.cannon, georg.brandl, amaury.forgeotdarc, pitrou
2012-07-28 19:51:46eric.snowsetmessageid: <1343505106.36.0.845953118677.issue15425@psf.upfronthosting.co.za>
2012-07-28 19:51:45eric.snowlinkissue15425 messages
2012-07-28 19:51:45eric.snowcreate