Hi, Hetland used flattening a list as an example of generators in his book 'Practical Python'. It was elegant and nice. Works with any degree of nested lists. I am not sure if it is okay to share his code here in a publich forum? -shuhsien