Message216951
| Author |
r.david.murray |
| Recipients |
Anthony.Kong, Fotis.Koutoulakis, eric.snow, luiz.poleto, ncoghlan, r.david.murray |
| Date |
2014年04月21日.17:00:19 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1398099620.07.0.972684624883.issue19771@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Hmm. It seems to me that .name not being set is a bug in importlib. It appears that importlib doesn't set it in the 'from x import y' case. After a bit of experimenting at the python prompt, I'm not even sure what that code in runpy is *doing* (find_spec('foo.__main__') seems to return None if __main__ doesn't exist but foo does). I'm going to have to leave this to Nick unless I find some more time somewhere ;) |
|