python-simpleldap icon indicating copy to clipboard operation
python-simpleldap copied to clipboard

Python3 compatibility

Open mkesper opened this issue 11 years ago • 2 comments

Hi,

would it be feasible to include Python3 compatibility (through 2to3 at least). Installing via pip breaks in Py3: print name + ': ' + cfg.get('_ldap', name)

         ^

SyntaxError: invalid syntax

mkesper avatar Jun 12 '14 14:06 mkesper

Python 3 compatibility won't be possible until the underlying python-ldap library becomes Python 3 compatible. That said, there does appear to be another, pure-Python ldap library that is Python 3 compatible: https://pypi.python.org/pypi/python3-ldap. Haven't used that library yet, but--being pure Python--there's a chance that its API is already good enough to not need the help of something like python-simpleldap.

gdub avatar Jun 12 '14 14:06 gdub

Hi,

"Gary Wilson Jr." [email protected] schrieb:

Python 3 compatibility won't be possible until the underlying python-ldap library becomes Python 3 compatible. That said, there does appear to be another, pure-Python ldap library that is Python 3 compatible: https://pypi.python.org/pypi/python3-ldap. Haven't used that library yet, but--being pure Python--there's a chance that its API is already good enough to not need the help of something like python-simpleldap.

Will try that one, thanks. But the API didn't look so nice yet, though: http://pythonhosted.org/python3-ldap/quicktour.html#simple-paged-search

Bye Michael

Diese Nachricht wurde mit Freier Software gesendet: http://fsfe.org

mkesper avatar Jun 12 '14 19:06 mkesper