On Wed, 28 Jan 2009 02:02:57 -0800 (PST), koranthala <koranth...@gmail.com> 
wrote:
On Jan 27, 9:27 pm, koranthala <koranth...@gmail.com> wrote:
On Jan 27, 6:57 pm, Jean-Paul Calderone <exar...@divmod.com> wrote:
[snip]

Thank you Jean-Paul.
My code is more complex than what I have mentioned. When I mentioned
msg.send, the msg object actually gets the data from DB etc to send.
And there are many other items being done.
I will try to see whether I can change the code to incorporate what
you mentioned.

I rewrote most of my code after learning just raw deferreds - I had
planned to study inlineCallbacks - but then it slipped my mind  - now
it has come to bit me. :-(

Hi,
 I tried to update the code as per the suggestion, but to no avail.
 My system uses Python2.4.3 (cannot move to 2.5) - so I tried to
rewrite with deferredGenerators - since I thought inlineCallbacks are
similar to deferredGenerators.

 But I cannot seem to rewrite it in a format where the functional
encapsulation is not broken.
 i.e. as I mentioned in the first example - I have to pass SELF to
child objects for them to modify it.

Why?  You don't do this in the original version of your code.  Why do
it after switching to Twisted (particularly since you seem to want *not*
to)?

Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to