[Python-3000] Should package __init__ files include pkgutil.extend_path?
skip at pobox.com
skip at pobox.com
Sat Sep 6 23:06:49 CEST 2008
I'm trying to figure out how to install this dbm.sqlite module I have
without overwriting the basic install. My thought was to create a dbm
package in site-packages then copy sqlite.py there. That doesn't work
though. Modifying dbm.__init__.py to include this does:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
I'm wondering if all the core packages in 3.x should include the above in
their __init__.py files.
Skip
More information about the Python-3000
mailing list