Problems importing _ldap module

Michael Ströder michael at stroeder.com
Tue Oct 2 18:09:06 CEST 2001


jmlittle at mac.com wrote:
> 
> are we supposed to import ldap or _ldap?

Good question. I vote for "import ldap" although the docs and
demos say sometimes "import _ldap".

IMHO "ldap" should be a module package with a ldap/__init__.py
importing the symbols from module _ldap (as already done on Unix
platforms in [Python's lib path]/site-packages/python-ldap/ldap.py).

This makes it possible to add Python modules to module ldap.

Ciao, Michael.




More information about the python-ldap mailing list