Message175742
| Author |
brett.cannon |
| Recipients |
brett.cannon |
| Date |
2012年11月17日.14:38:51 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1353163131.46.0.896555939151.issue16492@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
To make using importlib.find_loader() easier, there should be a flag that says to automatically import all parent packages for the desired submodule so as to not force the user to do it::
def find_loader(name, path=None, *, load_parents=False): ...
That way people who are okay with loading some packages implicitly to get at a specific loader can do so without having to do boilerplate name.split('.'); import each parent code. Also means people don't have to worry about the path argument (unless they explicitly want to trigger loading from a different location). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年11月17日 14:38:51 | brett.cannon | set | recipients:
+ brett.cannon |
| 2012年11月17日 14:38:51 | brett.cannon | set | messageid: <1353163131.46.0.896555939151.issue16492@psf.upfronthosting.co.za> |
| 2012年11月17日 14:38:51 | brett.cannon | link | issue16492 messages |
| 2012年11月17日 14:38:51 | brett.cannon | create |
|