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


Groups > comp.lang.python > #8013

Re: How to iterate on a changing dictionary

From TheSaint <nobody@nowhere.net.no>
Newsgroups comp.lang.python
Subject Re: How to iterate on a changing dictionary
Followup-To comp.lang.python
Date 2011-06-20 21:20 +0800
Organization Aioe.org NNTP Server
Message-ID <itnhfp$ab0$1@speranza.aioe.org> (permalink)
References <itl1a5$rom$1@speranza.aioe.org> <4dfe2b95$1@dnews.tpgi.com.au>

Followups directed to: comp.lang.python

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to iterate on a changing dictionary TheSaint <nobody@nowhere.net.no> - 2011-06-19 22:32 +0800
  Re: How to iterate on a changing dictionary Chris Angelico <rosuav@gmail.com> - 2011-06-20 01:13 +1000
    Re: How to iterate on a changing dictionary Roy Smith <roy@panix.com> - 2011-06-19 11:53 -0400
      Re: How to iterate on a changing dictionary Terry Reedy <tjreedy@udel.edu> - 2011-06-19 12:51 -0400
  Re: How to iterate on a changing dictionary Terry Reedy <tjreedy@udel.edu> - 2011-06-19 12:02 -0400
  Re: How to iterate on a changing dictionary Lie Ryan <lie.1296@gmail.com> - 2011-06-20 03:00 +1000
    Re: How to iterate on a changing dictionary TheSaint <nobody@nowhere.net.no> - 2011-06-20 21:20 +0800
      Re: How to iterate on a changing dictionary Florencio Cano <florencio.cano@gmail.com> - 2011-06-20 16:30 +0200
      Re: How to iterate on a changing dictionary Terry Reedy <tjreedy@udel.edu> - 2011-06-20 13:37 -0400
        Re: How to iterate on a changing dictionary TheSaint <nobody@nowhere.net.no> - 2011-06-21 18:44 +0800

csiph-web