Help - Classes and attributes

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Thu Jul 14 12:33:03 EDT 2005


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.




More information about the Python-list mailing list