Ben Finney <ben+pyt...@benfinney.id.au> writes:

>     code_by_desc = dict(
>         (desc, code) for (code, desc) in codes_to_messages.items())

Bah, I fumbled an edit. Try this::

    code_by_desc = dict(
        (desc, code) for (code, desc) in desc_by_code.items())

-- 
 \        “The reason we come up with new versions is not to fix bugs. |
  `\                     It's absolutely not.” —Bill Gates, 1995-10-23 |
_o__)                                                                  |
Ben Finney
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to