Hi Steve: Thank you for your quick response. Ah, indeed I failed to ask my question:: Why doesnt this code print the sampledata? Instead it prints the empty list. The answer is probably quite simple, as I really am an idiot. Thanks again, paul