Message294280
The key thing to think about is do you think find_spec("parent.module") is working with a single thing called "parent.module" or is it working with two separate things of "parent" and "module" which happens to be contained on "parent"? If you take the former view then you get the current semantics, but if you view it as the latter then you get the semantics you're suggesting, tkhyn.
My inclination is for the former semantics (i.e. think of it as a really long name for a specific module where it turns out the name is broken). If you look at it as find_spec(".submodule", package="parent") this also visually supports the idea that parent modules shouldn't trigger a None return. Finally, this would break any code that expects the current semantics.
So thanks for the bug report, but I'm going to close this as "not a bug". |
|
Date |
User |
Action |
Args |
2017-05-23 19:48:18 | brett.cannon | set | recipients:
+ brett.cannon, ncoghlan, eric.snow, tkhyn |
2017-05-23 19:48:18 | brett.cannon | set | messageid: <1495568898.12.0.339204179174.issue30436@psf.upfronthosting.co.za> |
2017-05-23 19:48:18 | brett.cannon | link | issue30436 messages |
2017-05-23 19:48:18 | brett.cannon | create | |
|