Paul McGuire wrote: > At the risk of beating this into the Pythonic ground, here is a > generator version which collapses the original nested loop into a > single loop, so that break works just fine:
Indeed. For some things I'm still in the pre-generator days of Python. If I worked at it I think I could come up with an example that wouldn't be so easy to turn into an iterator, but that would be not only be beating it into the ground but doing a clog dance on top. Andrew [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list