Message156475
| Author |
eric.snow |
| Recipients |
Arfrever, brett.cannon, eric.araujo, eric.snow, meador.inge |
| Date |
2012年03月21日.06:00:29 |
| SpamBayes Score |
5.8887863e-06 |
| Marked as misclassified |
No |
| Message-id |
<1332309630.17.0.824090111864.issue13959@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Of note for my patch is the addition of SUFFIXES and MODE to the 3 main "file loader" classes. I did this to reverse the dependence on imp.get_suffixes().
As well, a couple of extra functions are added to Python/importlib/_bootstrap.py for a similar reason, but should also be meaningful externally in their own right.
load_module_from_file(), is one of these, though the current incarnation relies on a mythical new method on loaders that may not pass muster.
(FWIW, I accidently included the use_of_imp.txt file in the patch and don't intend it to get included) |
|