Thanks for the link! The .next and .previous are really useful because it makes it easy to do groupings like this:
>>> for loop, c in looper([11, 12, 13, 21, 22, 31, 32, 33]): ... if loop.first_group(lambda i: i // 10): ... print '---' ... print c ... --- 11 12 13 --- 21 22 --- 31 32 33 The first_group method takes any callable. For doing stuff like drawing tables with lots of subtotal lines, this is immensely useful. Matt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pocoo-libs?hl=en -~----------~----~----~----~------~----~------~--~---
