dict order

Aahz aahz at pythoncraft.com
Thu Jun 19 18:37:16 CEST 2008

In article <411fc353-dd54-4bbc-a72e-ddee66408313 at c58g2000hsc.googlegroups.com>,
 <cokofreedom at gmail.com> wrote:
>for keys, values in dict_one.items():
>  if keys in dict_two:
>    if values == dict_two[keys]:

Except that "keys" implies a plural (meaning more than one thing); in a
for loop, each iteration will have only one key.
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha

More information about the Python-list mailing list