Proper deletion of selected items during map iteration in for loop: Thanks to all
Tim Chase
python.list at tim.thechases.com
Sat Apr 26 16:24:03 EDT 2014
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
More information about the Python-list
mailing list