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 brett.cannon
Recipients Pascal.Chambon, barry, brett.cannon, eric.snow, isoschiz, kristjan.jonsson, methane, ncoghlan, pconnell, pje
Date 2013年06月05日.16:45:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370450720.12.0.733889111449.issue17636@psf.upfronthosting.co.za>
In-reply-to
Content
If you look at the importlib source code in 2.7 it's actually really small and simply translates the call into an __import__ call under the hood. So __import__ can completely handle relative imports, but you were not using the level argument to __import__ nor passing the necessary globals to make the relative name computation work (see the importlib source if you want to see how it works).
History
Date User Action Args
2013年06月05日 16:45:20brett.cannonsetrecipients: + brett.cannon, barry, pje, ncoghlan, kristjan.jonsson, methane, eric.snow, pconnell, isoschiz, Pascal.Chambon
2013年06月05日 16:45:20brett.cannonsetmessageid: <1370450720.12.0.733889111449.issue17636@psf.upfronthosting.co.za>
2013年06月05日 16:45:20brett.cannonlinkissue17636 messages
2013年06月05日 16:45:19brett.cannoncreate

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