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 Jim.Jewett, brett.cannon, eric.snow, meador.inge
Date 2012年02月17日.14:20:51
SpamBayes Score 0.00016677052
Marked as misclassified No
Message-id <1329488453.1.0.18214441798.issue13977@psf.upfronthosting.co.za>
In-reply-to
Content
So I simply swapped out the code and the tests fail. Then I realized why: while the assumption is right, that does not mean that that name passed to __import__() isn't relative and thus shifts what need to be returned (the else clause case). That's why it's a slice off of __name__ based on name itself; name is some funky tail section of __name__ for relative imports.
History
Date User Action Args
2012年02月17日 14:20:53brett.cannonsetrecipients: + brett.cannon, meador.inge, eric.snow, Jim.Jewett
2012年02月17日 14:20:53brett.cannonsetmessageid: <1329488453.1.0.18214441798.issue13977@psf.upfronthosting.co.za>
2012年02月17日 14:20:51brett.cannonlinkissue13977 messages
2012年02月17日 14:20:51brett.cannoncreate

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