"Exploding" (**myvariable) a dict with unicode keys

Aahz aahz at pythoncraft.com
Thu Jun 4 10:45:27 EDT 2009

In article <mailman.1038.1243986288.8015.python-list at python.org>,
Samuel Wan  <sam at samuelwan.com> wrote:
>I started using python last week and ran into exceptions thrown when
>unicode dictionary keys are exploded into function arguments. In my
>case, decoded json dictionaries did not work as function arguments.
>There was a thread from Oct 2008
>(http://www.gossamer-threads.com/lists/python/python/684379) about the
>same problem. Here is my workaround:

When posting to threads like this, please make sure to specify which
version(s) of Python you're using -- this is a Python 2.x issue.
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Given that C++ has pointers and typecasts, it's really hard to have a
serious conversation about type safety with a C++ programmer and keep a
straight face.  It's kind of like having a guy who juggles chainsaws
wearing body armor arguing with a guy who juggles rubber chickens wearing
a T-shirt about who's in more danger."  --Roy Smith, c.l.py, 2004.05.23

More information about the Python-list mailing list