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 ncoghlan
Recipients barry, brett.cannon, eric.snow, isoschiz, kristjan.jonsson, methane, ncoghlan, pconnell, pje
Date 2013-04-14.07:51:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365925912.95.0.799491999036.issue17636@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for working through that Phillip - falling back to sys.modules when the expected attribute was missing is actually something I suggested as a possibility years ago, and Guido's response at the time was "If it was that easy, someone would have done it already".

Your analysis is one of the pieces that was missing, along with Brett's insight that the code that needs the fallback is the IMPORT_FROM bytecode rather than the import implementation.

I'm going to close the original circular import bug as being superseded by this one.
History
Date User Action Args
2013-04-14 07:51:53ncoghlansetrecipients: + ncoghlan, barry, brett.cannon, pje, kristjan.jonsson, methane, eric.snow, pconnell, isoschiz
2013-04-14 07:51:52ncoghlansetmessageid: <1365925912.95.0.799491999036.issue17636@psf.upfronthosting.co.za>
2013-04-14 07:51:52ncoghlanlinkissue17636 messages
2013-04-14 07:51:52ncoghlancreate