summaryrefslogtreecommitdiffstats
path: root/Lib/pkgutil.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue 2439: add pkgutils.get_data() as a convenience wrapper for the PEP 302 ↵Nick Coghlan2008-04-151-0/+37
| | | | get_data() API (contributed by Paul Moore)
* Bug #1529871: The speed enhancement patch #921466 broke Python's compliancePhillip J. Eby2006-07-281-3/+1
| | | | | | with PEP 302. This was fixed by adding an ``imp.NullImporter`` type that is used in ``sys.path_importer_cache`` to cache non-directory paths and avoid excessive filesystem operations during imports.
* Whitespace normalization.Tim Peters2006-07-261-1/+1
|
* Allow the 'onerror' argument to walk_packages() to catch any Exception, notPhillip J. Eby2006-07-261-5/+15
| | | | | just ImportError. This allows documentation tools to better skip unimportable packages.
* Whitespace normalization.Tim Peters2006-07-251-3/+3
|
* Patch #1525766: correctly pass onerror arg to recursive callsGeorg Brandl2006-07-251-4/+34
| | | | of pkg.walk_packages. Also improve the docstrings.
* Fix errors found by pycheckerNeal Norwitz2006-06-111-0/+1
|
* Need for speed: Patch #921466 : sys.path_importer_cache is now used to cache ↵Georg Brandl2006-05-261-2/+4
| | | | | | | | | | valid and invalid file paths for the built-in import machinery which leads to fewer open calls on startup. Also fix issue with PEP 302 style import hooks which lead to more open() calls than necessary.
* Add some whitespace to be more consistent.Neal Norwitz2006-04-281-11/+13
|
* Whilespace normalization (reindint.py).Tim Peters2006-04-181-4/+4
|
* Second phase of refactoring for runpy, pkgutil, pydoc, and setuptoolsPhillip J. Eby2006-04-181-5/+166
| | | | | | | | | | | | | | | | | | | | to share common PEP 302 support code, as described here: http://mail.python.org/pipermail/python-dev/2006-April/063724.html pydoc now supports PEP 302 importers, by way of utility functions in pkgutil, such as 'walk_packages()'. It will properly document modules that are in zip files, and is backward compatible to Python 2.3 (setuptools installs for Python <2.5 will bundle it so pydoc doesn't break when used with eggs.) What has not changed is that pydoc command line options do not support zip paths or other importer paths, and the webserver index does not support sys.meta_path. Those are probably okay as limitations. Tasks remaining: write docs and Misc/NEWS for pkgutil/pydoc changes, and update setuptools to use pkgutil wherever possible, then add it to the stdlib.
* First phase of refactoring for runpy, pkgutil, pydoc, and setuptoolsPhillip J. Eby2006-04-171-0/+264
| | | | | | | | | | | | | | | | to share common PEP 302 support code, as described here: http://mail.python.org/pipermail/python-dev/2006-April/063724.html This revision strips all the PEP 302 emulation code from runpy, replacing it with published API classes and functions in pkgutil, mostly using setuptools' implementation of common functionality, but adding features from runpy, and doing some refactoring to make the layer pydoc needs easier to implement on top of this. One step down, four to go, although step #4 (adding C versions of the new APIs to 'imp') may not be able to make it in time for alpha 2. We'll see how that goes.
* SF patch #806246: use basestring where possibleRaymond Hettinger2003-09-171-1/+1
| | | | (Contributed by George Yoshida.)
* Last week we discussed adding this module to the standard library.Guido van Rossum2002-12-231-0/+78
Here's a draft. I have no immediate use for it, but I'd like this to be available for experimentation. I may withdraw it or change it radically up to and including the release of Python 2.3b1.