[Python-checkins] r45510 - python/trunk/Lib/pkgutil.py python/trunk/Lib/pydoc.py (original) (raw)
M.-A. Lemburg mal at egenix.com
Tue Apr 18 10:55:25 CEST 2006
- Previous message: [Python-checkins] r45510 - python/trunk/Lib/pkgutil.py python/trunk/Lib/pydoc.py
- Next message: [Python-checkins] [Python-Dev] r45510 - python/trunk/Lib/pkgutil.py python/trunk/Lib/pydoc.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Phillip.eby wrote:
Author: phillip.eby Date: Tue Apr 18 02:59:55 2006 New Revision: 45510
Modified: python/trunk/Lib/pkgutil.py python/trunk/Lib/pydoc.py Log: Second phase of refactoring for runpy, pkgutil, pydoc, and setuptools to share common PEP 302 support code, as described here: http://mail.python.org/pipermail/python-dev/2006-April/063724.html
Shouldn't this new module be named "pkglib" to be in line with the naming scheme used for all the other utility modules, e.g. httplib, imaplib, poplib, etc. ?
pydoc now supports PEP 302 importers, by way of utility functions in pkgutil, such as 'walkpackages()'. 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.)
Are you saying that the installation of setuptools in Python 2.3 and 2.4 will then overwrite the standard pydoc included with those versions ?
I think that's the wrong way to go if not made an explicit option in the installation process or a separate installation altogether.
I bothered by the fact that installing setuptools actually changes the standard Python installation by either overriding stdlib modules or monkey-patching them at setuptools import time.
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.metapath. 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.
Add setuptools to the stdlib ? I'm still missing the PEP for this along with the needed discussion touching among other things, the change of the distutils standard "python setup.py install" to install an egg instead of a site package.
-- Marc-Andre Lemburg eGenix.com
Professional Python Services directly from the Source (#1, Apr 18 2006)
Python/Zope Consulting and Support ... http://www.egenix.com/ mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
- Previous message: [Python-checkins] r45510 - python/trunk/Lib/pkgutil.py python/trunk/Lib/pydoc.py
- Next message: [Python-checkins] [Python-Dev] r45510 - python/trunk/Lib/pkgutil.py python/trunk/Lib/pydoc.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]