Re: Bidirectional Generators

2008-08-04 Thread william tanksley
Jeff <[EMAIL PROTECTED]> wrote: > william tanksley <[EMAIL PROTECTED]> wrote: > > 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. > I have.  An iterator that could backtrack itself without the

Re: Bidirectional Generators

2008-08-04 Thread Jeff
On Aug 4, 12:39 pm, william tanksley <[EMAIL PROTECTED]> wrote: > Paddy <[EMAIL PROTECTED]> 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 i

Re: Bidirectional Generators

2008-08-04 Thread william tanksley
Paddy <[EMAIL PROTECTED]> 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 a

Re: Bidirectional Generators

2008-07-22 Thread Paddy
On Jul 22, 10:07 pm, william tanksley <[EMAIL PROTECTED]> wrote: > Okay, I'm almost finished with my first bidirectional generator. By > "almost finished" I mean both that it's almost working, and that I'm > almost about to replace it with a class that works a bit more like > what I currently under

Bidirectional Generators

2008-07-22 Thread william tanksley
Okay, I'm almost finished with my first bidirectional generator. By "almost finished" I mean both that it's almost working, and that I'm almost about to replace it with a class that works a bit more like what I currently understand. Surely some other people have worked with this feature... Are the