Re: Help - Classes and attributes
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Help - Classes and attributes

From: Bruno Desthuilliers <bdesth.quelquechose@free.quelquepart.fr>
Date: Thu Jul 14 2005 - 18:33:03 CEST

rh0dium a écrit :
> Hi
>
> I really like your approach but when do you actually get connected??
> You never call the method connect?

oops :(

(snip whole code)
>>if __name__ == '__main__':
>> truc = NSCLdap()
        truc.connect() # was missing
>> truc.search()
>

BTW, you'd better let exceptions propagate from connect(), and catch'em
in the calling code.
Received on Thu Sep 29 16:57:12 2005