Wow, I didn't have time to look back on this thread for a while, surprised of the activity. Anyhow, thanks for the answers, and thanks for pointing out that the itertools-variants are not available in 2.5. Cheers! //emil