genexp performance problem?

Delaney, Timothy (Tim) tdelaney at
Tue May 30 22:48:48 EDT 2006

Kent Johnson wrote:

> Reusing the generator doesn't give a correct answer; after the first
> sum() the generator is exhausted:

Duh - good point. I forgot it was returning a generator object, not
generator function.

Tim Delaney

More information about the Python-list mailing list