[Twisted-Python] Will twisted be using generators new in Python 2.3?

Bob Ippolito bob at redivi.com
Mon Feb 10 22:32:25 MST 2003


On Tuesday, Feb 11, 2003, at 00:19 America/New_York, Dmitry Litovchenko 
wrote:

> Hello Andrew,
>
> Tuesday, February 11, 2003, 4:06:02 AM, you wrote:
>
> AB> On Mon, Feb 10, 2003 at 07:33:54PM -0500, Bob Ippolito wrote:
>>> need to support 2.1.  As far as I know, we need to have full support
>>> for 2.1 as long as Zope requires it.
>
> AB> And also many systems still only have 2.1, e.g. Debian stable 
> (woody).
>
> Okay, next question. I am highly interested in non-standard control
> flow in Python, which was implemented in stackless python, which
> (stackless python I mean) seems to be discontinued or at least very
> slowly updated. Does anyone know when will these appear in standard
> Python.
>
> These control flows seem to make things much simpler.

They can make some things easier or more efficient, I tend to use them 
when they make sense.. here's some code I was toying with, it uses 
generators in twisted, doesn't let you do much that you can't do with 
callback chains, but it (possibly) makes some of it a lot more 
straightforward.

-bob

-------------- next part --------------
A non-text attachment was scrubbed...
Name: flow.py
Type: application/octet-stream
Size: 5720 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030211/cfb15cb3/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flowexample.py
Type: application/octet-stream
Size: 5637 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030211/cfb15cb3/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_flow.py
Type: application/octet-stream
Size: 2284 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030211/cfb15cb3/attachment-0008.obj>


More information about the Twisted-Python mailing list