Message165035
| Author |
chris.jerdonek |
| Recipients |
chris.jerdonek |
| Date |
2012年07月08日.21:12:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1341781980.93.0.099189257301.issue15297@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I'm not sure if this should be fixed in the code or in the documentation, but the pkgutil.iter_importers() documentation says that pkgutil.iter_importers(name) should yield the "importers for sys.meta_path, sys.path, and Python’s "classic" import machinery, in that order" when name does not include a ".":
http://docs.python.org/dev/library/pkgutil.html#pkgutil.iter_importers
However, the function appends a "non-classic" pkgutil.ImpImporter at the end of all that:
Python 3.3.0b1 (default:5d43154d68a8, Jul 8 2012, 13:54:45)
[GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] on darwin
>>> from pkgutil import iter_importers
>>> list(iter_importers())[-1]
<pkgutil.ImpImporter object at 0x1035fa840> |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年07月08日 21:13:01 | chris.jerdonek | set | recipients:
+ chris.jerdonek |
| 2012年07月08日 21:13:00 | chris.jerdonek | set | messageid: <1341781980.93.0.099189257301.issue15297@psf.upfronthosting.co.za> |
| 2012年07月08日 21:13:00 | chris.jerdonek | link | issue15297 messages |
| 2012年07月08日 21:12:59 | chris.jerdonek | create |
|