Bidirectional Generators

william tanksley wtanksleyjr at gmail.com
Mon Aug 4 12:39:28 EDT 2008


Paddy <paddy3... at googlemail.com> wrote:
> What's one of them then?

I'm sorry, I don't know what you mean.

Meanwhile, more pertinently: I did get my generator working, and then
I replaced it with a class that did the same thing in less than a
quarter of the number of lines. So... I'm not going to worry about
that anymore. My use case obviously wasn't the right one for them.

I'm still curious, though, whether anyone's written any code that
actually uses yield _and_ send() to do anything that isn't in the
original PEP.

> - Paddy.

-Wm



More information about the Python-list mailing list