Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70640 > unrolled thread

Re: Proper deletion of selected items during map iteration in for loop: Thanks to all

Started byTim Chase <python.list@tim.thechases.com>
First post2014-04-26 15:24 -0500
Last post2014-04-26 15:24 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Proper deletion of selected items during map iteration in for loop: Thanks to all Tim Chase <python.list@tim.thechases.com> - 2014-04-26 15:24 -0500

#70640 — Re: Proper deletion of selected items during map iteration in for loop: Thanks to all

FromTim Chase <python.list@tim.thechases.com>
Date2014-04-26 15:24 -0500
SubjectRe: Proper deletion of selected items during map iteration in for loop: Thanks to all
Message-ID<mailman.9525.1398543855.18130.python-list@python.org>
On 2014-04-26 12:25, Charles Hixson wrote:
> I expect that I'll be deleting around 1/3 during
> each iteration of the process...and then adding new ones back in.
> There shouldn't be a really huge number of deletions on any
> particular pass, but it will be looped through many times...

If you have further details on what triggers the "adding new ones
back in", and what changes or remains the same between various
passes, there might be room for optimization elsewhere.

-tkc



[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web