itertools is also written in c, so if you're working with a big nested list is long it will be a lot faster.
On Sat, May 8, 2010 at 5:40 PM, Tycho Andersen <ty...@tycho.ws> wrote: > On Sat, May 8, 2010 at 4:09 PM, Günther Dietrich > <gd.use...@spamfence.net> wrote: > [snip] > > Too simple? > > No, not at all. I really only intended to point the OP to itertools, > because it does lots of useful things exactly like this one. > > \t > -- > http://mail.python.org/mailman/listinfo/python-list >
-- http://mail.python.org/mailman/listinfo/python-list