[python-ldap] ldap.SUCCESS sometimes, the results other times

Jeff Blaine jblaine at kickflop.net
Fri Jul 8 15:03:01 CEST 2011


On 7/8/2011 3:07 AM, Michael Ströder wrote:
> Jeff Blaine wrote:
>> I'm clearly doing something wrong :)
>>
>> I don't see this addressed in the documentation or the
>> FAQ.
>>
>> I'm developing something.  When I run it, the majority
>> of the time I get traceback ending in ldap.SUCCESS
>> instead of the expected output.  Eventually, if I run
>> it enough times, it spits out my data instead of
>> ldap.SUCCESS
>
> Well, my crystal ball is blurry... ;-)

Sorry, I just figured maybe it was an obvious thing
that was easy to detect by a list member.

I ended up figuring it out a few hours after posting.

I was using search instead of search_s, so was seeing
the asynchrony mostly instead of results every time.


More information about the python-ldap mailing list