[Python-ideas] Yield-From: Finalization guarantees
Terry Reedy
tjreedy at udel.edu
Sat Apr 4 01:21:10 CEST 2009
Guido van Rossum wrote:
> On Wed, Apr 1, 2009 at 2:30 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>> As another perspective on this, I think Jacob's
>> example is another case of bogus refactoring.
>
> Be that as it may, I wonder if we shouldn't back off from the
> refactoring use case a bit and instead just ponder the different types
> of code you can write using generators. There's the traditional "pull"
> style (iterators), "push" style (like the averaging example), and then
> there are "tasks". (Have you read Dave Beazley's couroutines tutorial
> yet? Or am I the only one who likes it? :-)
I liked it so much that I posted the url to the Python list, where
others gave it a positive response also. Unlike his previous intro
talk, it was not something to breeze through in an evening, so I
bookmarked it. Thanks for mentioning it.
Terry
More information about the Python-ideas
mailing list