zip() function troubles

Terry Reedy tjreedy at udel.edu
Fri Jul 27 16:50:49 EDT 2007


"Istvan Albert" <istvan.albert at gmail.com> wrote in message 
news:1185565236.726558.265200 at r34g2000hsd.googlegroups.com...
| On Jul 27, 2:18 pm, Raymond Hettinger <pyt... at rcn.com> wrote:
|
| >> What was really surprising is that it works
| >> with no issues up until 1 million items"
|
| later editing made the sentence more difficult to read
| I should have said: "What was really surprising is that zip works
| with no issues up until 1 million items"
|
| It was the zip function (and the garbage collection that it repeatedly
| triggers) that cause the problem

It is not the zip function that caused a problem.  It was the creation of 
so many tuples without any deletions.  The list comp example I gave does 
the same thing and has the same problem.  Nothing to do with zipping per 
se.

tjr






More information about the Python-list mailing list