Hi,
1) I want to iterate over a list "N at a time" sort of like:
# Two at a time... won't work, obviously
>>> for a, b in [1,2,3,4]: ... print a,b ... Traceback (most recent call last): File "<interactive input>", line 1, in ? TypeError: unpack non-sequence >>>
Is there a nifty way to do with with list comprehensions, or do I just have to loop over the list ?
cheers and thanks
chris wright -- http://mail.python.org/mailman/listinfo/python-list