Hi Jason

>   - Is there a Twisted pattern for managing tasks efficiently that I be
>   - missing?

Sounds like you should be using a Python generator and that you're not.

First off, have you read http://jcalderone.livejournal.com/24285.html ?
If not, do.  Take note of the line

  work = (callable(elem, *args, **named) for elem in iterable)

work is a generator.  Make sure you understand every line of that code :-)

You might also find https://launchpad.net/txrdq of interest, though it's
probably overkill for what you're trying to do.

Terry

_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to