Re: reusing generators

2007-03-27 Thread Paul Rubin
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Hello, I have a two large files that I need to read in records from > and compare in a pairwise fashion: Memory is an issue, so I want to > use a generator to get each record one at a time. However, doing the > comparisons with nested for loops, the

reusing generators

2007-03-27 Thread [EMAIL PROTECTED]
Hello, I have a two large files that I need to read in records from and compare in a pairwise fashion: Memory is an issue, so I want to use a generator to get each record one at a time. However, doing the comparisons with nested for loops, the inner generator will run out of items. How can I restar