Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3 compatibility #5

Open
mkesper opened this issue Jun 12, 2014 · 2 comments
Open

Python3 compatibility #5

mkesper opened this issue Jun 12, 2014 · 2 comments

Comments

@mkesper
Copy link

mkesper commented Jun 12, 2014

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

@gdub
Copy link
Owner

gdub commented Jun 12, 2014

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.

@mkesper
Copy link
Author

mkesper commented Jun 12, 2014

Hi,

"Gary Wilson Jr." notifications@github.com 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants