How to iterate on a changing dictionary

TheSaint nobody at nowhere.net.no
Mon Jun 20 09:20:55 EDT 2011


Lie Ryan wrote:

Thank you all for the information, really apreciated.

> While there are legitimate reasons for iterating a dictionary, I'd
> consider the alternatives first.

Perhaps the correct answer is in what you said.

For certain reasons, searching in a dictionary is the fastest method, 
secondly the positions of the data aren't relevant and easy to find.

My primer purpose is to know how much of work is done as soon the child 
process reports completion of a part. The order of the given jobs are not 
linear as it could do with a list.

To make an example: imaging Bingo.Shuffle the numbers, each number sorted 
should be removed from the container, how would it implemented?

-- 
goto /dev/null



More information about the Python-list mailing list