Re: Iterator class to allow self-restarting generator expressions?

2009-03-02 Thread John O'Hagan
On Sun, 1 Mar 2009, Terry Reedy wrote: > John O'Hagan wrote: > > Inspired by some recent threads here about using classes to extend the > > behaviour of iterators, I'm trying to replace some some top-level > > functions aimed at doing such things with a class. > > > > So far it's got a test for emp

Re: Iterator class to allow self-restarting generator expressions?

2009-03-02 Thread Gabriel Genellina
En Mon, 02 Mar 2009 06:48:02 -0200, Lie Ryan escribió: Gabriel Genellina wrote: En Sun, 01 Mar 2009 15:51:07 -0200, Chris Rebert escribió: On Sun, Mar 1, 2009 at 8:54 AM, Gabriel Genellina wrote: En Sun, 01 Mar 2009 13:20:28 -0200, John O'Hagan escribió: Inspired by some recent threads he

Re: Iterator class to allow self-restarting generator expressions?

2009-03-02 Thread Lie Ryan
Gabriel Genellina wrote: > En Sun, 01 Mar 2009 15:51:07 -0200, Chris Rebert > escribió: >> On Sun, Mar 1, 2009 at 8:54 AM, Gabriel Genellina >> wrote: >>> En Sun, 01 Mar 2009 13:20:28 -0200, John O'Hagan >>> >>> escribió: >>> Inspired by some recent threads here about using classes to exten

Re: Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread John O'Hagan
On Sun, 1 Mar 2009, Mark Tolonen wrote: > "John O'Hagan" wrote in message > news:200903011520.29405.resea...@johnohagan.com... > > > Inspired by some recent threads here about using classes to extend the > > behaviour of iterators, I'm trying to replace some some top-level > > functions > > aimed

Re: Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread Terry Reedy
John O'Hagan wrote: Inspired by some recent threads here about using classes to extend the behaviour of iterators, I'm trying to replace some some top-level functions aimed at doing such things with a class. So far it's got a test for emptiness, a non-consuming peek-ahead method, and an exten

Re: Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread Gabriel Genellina
En Sun, 01 Mar 2009 15:51:07 -0200, Chris Rebert escribió: On Sun, Mar 1, 2009 at 8:54 AM, Gabriel Genellina wrote: En Sun, 01 Mar 2009 13:20:28 -0200, John O'Hagan escribió: Inspired by some recent threads here about using classes to extend the behaviour of iterators, I'm trying to repl

Re: Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread Chris Rebert
On Sun, Mar 1, 2009 at 8:54 AM, Gabriel Genellina wrote: > En Sun, 01 Mar 2009 13:20:28 -0200, John O'Hagan > escribió: > >> Inspired by some recent threads here about using classes to extend the >> behaviour of iterators, I'm trying to replace some some top-level >> functions >> aimed at doing s

Re: Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread Gabriel Genellina
En Sun, 01 Mar 2009 13:20:28 -0200, John O'Hagan escribió: Inspired by some recent threads here about using classes to extend the behaviour of iterators, I'm trying to replace some some top-level functions aimed at doing such things with a class. So far it's got a test for emptiness, a no

Re: Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread Mark Tolonen
"John O'Hagan" wrote in message news:200903011520.29405.resea...@johnohagan.com... Inspired by some recent threads here about using classes to extend the behaviour of iterators, I'm trying to replace some some top-level functions aimed at doing such things with a class. So far it's got a te

Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread John O'Hagan
Inspired by some recent threads here about using classes to extend the behaviour of iterators, I'm trying to replace some some top-level functions aimed at doing such things with a class. So far it's got a test for emptiness, a non-consuming peek-ahead method, and an extended next() which can r