import _XXXXXX
Skip Montanaro
skip at pobox.com
Tue Sep 30 14:42:52 EDT 2003
Robert> When a Python program declares import _XXXX. What form is XXXX
Robert> when the underbar is included (_XXX)?
There's no special form. The leading underscore is there to alert people
they should not normally import that module directly. For example, people
should import bsddb, not _bsddb. Same goes for (the third part modules)
MySQLdb and _mysql. In both cases, the former builds on the latter.
Skip
More information about the Python-list
mailing list