An iterator with look-ahead

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


On 2007-01-10, Fredrik Lundh <fredrik at pythonware.com> 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:
>
> http://online.effbot.org/2005_11_01_archive.htm#simple-parser-1

Thank you. Much better.

-- 
Neil Cerutti



More information about the Python-list mailing list