Quick nested loop syntax?
Mark Dickinson
dickinsm at gmail.com
Wed Nov 19 12:57:48 EST 2008
On Nov 19, 5:48 pm, Johannes Bauer <dfnsonfsdu... at gmx.de> wrote:
> Hi group,
>
> if I remember correctly, wasn't there a way to quickly iterate through
> nested loops? Something like
Python 2.6 has itertools.product:
http://docs.python.org/library/itertools.html#itertools.product
If you don't have Python 2.6 available, then the documentation
above also contains (almost) equivalent Python code that might
work for you.
Mark
More information about the Python-list
mailing list