homepage

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 Benjamin.S.Wolf, eric.araujo, ncoghlan
Date 2012年07月07日.11:21:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341660113.73.0.745468399569.issue15230@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, that's not accurate - you have enough code in b.py to make the relative import work by convincing the interpreter it's actually being done in a package.
So what you're seeing in that regard is the fact that runpy is not any kind of sandbox - it shares process global state, including the import system, with all other modules. While the temporary module will be reverted automatically by runpy, any child imports will always remain visible in sys.modules, and any other side effects will remain in place (e.g. codec registrations).
History
Date User Action Args
2012年07月07日 11:21:53ncoghlansetrecipients: + ncoghlan, eric.araujo, Benjamin.S.Wolf
2012年07月07日 11:21:53ncoghlansetmessageid: <1341660113.73.0.745468399569.issue15230@psf.upfronthosting.co.za>
2012年07月07日 11:21:53ncoghlanlinkissue15230 messages
2012年07月07日 11:21:52ncoghlancreate

AltStyle によって変換されたページ (->オリジナル) /