Message159848
| Author |
Pavel.Aslanov |
| Recipients |
Pavel.Aslanov |
| Date |
2012年05月03日.10:45:40 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1336041941.32.0.315196686397.issue14710@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
if module was marked as not existing by setting sys.modules [fullname] to None, then pkgutil.get_loader (fullname) will throw AttributeError.
Example:
#! /usr/bin/evn python
import unittest
import pkgutil
def main ():
pkgutil.get_loader ('unittest.functools')
if __name__ == '__main__':
main ()
Patch is attached |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年05月03日 10:45:41 | Pavel.Aslanov | set | recipients:
+ Pavel.Aslanov |
| 2012年05月03日 10:45:41 | Pavel.Aslanov | set | messageid: <1336041941.32.0.315196686397.issue14710@psf.upfronthosting.co.za> |
| 2012年05月03日 10:45:40 | Pavel.Aslanov | link | issue14710 messages |
| 2012年05月03日 10:45:40 | Pavel.Aslanov | create |
|