An iterator with look-ahead

Neil Cerutti horpner at
Wed Jan 10 16:10:12 CET 2007

On 2007-01-10, Fredrik Lundh <fredrik at> wrote:
> if you're doing simple parsing on an iterable, it's easier and
> more efficient to pass around the current token and the
> iterator's next method:

Thank you. Much better.

Neil Cerutti

More information about the Python-list mailing list