> Thanks for your responses and help. thought I should provide > more information for clarity. It sounds like you want the "grouper" function as defined here: http://docs.python.org/library/itertools.html#recipes which does what you describe. -tkc