Bidirectional Generators

william tanksley wtanksleyjr at
Mon Aug 4 18:39:28 CEST 2008

Paddy <paddy3... at> 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.


More information about the Python-list mailing list