[python-ldap] more fine-grained GIL releasing in l_ldap_result4()

Michael Ströder michael at stroeder.com
Wed Sep 6 09:47:58 EDT 2017


HI!

I plan to apply the attached patch to ensure that GIL is only 
released when calling out to libldap and re-claimed immediately 
afterwards.

Please review.

Basically l_ldap_result4() etc. is a real mess and one of the 
deficiencies in python-ldap's code base.

Any comments on that?

Ciao, Michael.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-gil-issue.patch
Type: text/x-patch
Size: 1562 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20170906/ac4a9287/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3829 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20170906/ac4a9287/attachment-0001.bin>


More information about the python-ldap mailing list