import _XXXXXX

Robert Clayton rjc at tampabay.rr.com
Tue Sep 30 17:28:21 EDT 2003


O.K.

But in PyKyra most ever Python file begins with _pyKyra.

"Skip Montanaro" <skip at pobox.com> wrote in message
news:mailman.1064947483.21334.python-list at python.org...
>
>     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