Re: [Twisted-Python] Deferred question

2008-12-09 Thread Gabriel Rossetti
James Y Knight wrote: On Dec 9, 2008, at 4:09 AM, Gabriel Rossetti wrote: Forget it, I monkey-patched defer.Deferred to add __del__ to see if it was called, and it was, so they are getting destroyed... BTW, that is not a good way to tell if objects are being deleted. Simply the act of adding

Re: [Twisted-Python] Deferred question

2008-12-09 Thread James Y Knight
On Dec 9, 2008, at 4:09 AM, Gabriel Rossetti wrote: Forget it, I monkey-patched defer.Deferred to add __del__ to see if it was called, and it was, so they are getting destroyed... BTW, that is not a good way to tell if objects are being deleted. Simply the act of adding a __del__ to an objec

Re: [Twisted-Python] Deferred question

2008-12-09 Thread Gabriel Rossetti
Gabriel Rossetti wrote: Hello everyone, I have a question concerning defers, I have a service that needs to query IO until it answers. The IO can be disconnected, connected but off, connected and on; depending on the state I get different exceptions. I wrote something like : def __requestId

[Twisted-Python] Deferred question

2008-12-08 Thread Gabriel Rossetti
Hello everyone, I have a question concerning defers, I have a service that needs to query IO until it answers. The IO can be disconnected, connected but off, connected and on; depending on the state I get different exceptions. I wrote something like : def __requestId(self, _): d = sel