> Marco Mariani ha scritto: >> Vorrei sostituire una dipedenza da python-ldap con twisted+ldaptor, >> per restare in pure-python
Manlio Perillo wrote: > Le soluzioni sono: > > 1) Avviare il reactor, esequire il codice, arrestare il reactor. > > Ma questo è inefficiente. > > 2) Avviare il reactor in un thread separato, e mandargli le varie > richieste via una Queue. > > Ma dubito funzioni e vai in cerca di guai. 3) creare con Twisted un demone in un processo separato, e usarlo come adapter per arrivare ad LDAP, comunicandovi col protocollo che più ti aggrada. Ne vale la pena, per restare in pure Python? Solo tu puoi saperlo. :-) -- Nicola Larosa - http://www.tekNico.net/ For 50 years, the author cracked the knuckles of his left hand at least twice a day, leaving those on the right as a control. Thus, the knuckles on the left were cracked at least 36,500 times, while those on the right cracked rarely and spontaneously. [...] There was no arthritis in either hand, and no apparent differences between the two hands. - Donald Unger, 1988, cited by Scientific American, 2009 _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python