Message153547
| 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:53 | brett.cannon | set | recipients:
+ brett.cannon, meador.inge, eric.snow, Jim.Jewett |
| 2012年02月17日 14:20:53 | brett.cannon | set | messageid: <1329488453.1.0.18214441798.issue13977@psf.upfronthosting.co.za> |
| 2012年02月17日 14:20:51 | brett.cannon | link | issue13977 messages |
| 2012年02月17日 14:20:51 | brett.cannon | create |
|