[pypy-issue] [issue751] Pypy doesn't allow some unicode keyword arguments

Irmen de Jong tracker at bugs.pypy.org
Mon Jun 13 16:58:20 CEST 2011


New submission from Irmen de Jong <irmen at razorvine.net>:

There is a small problem with Pypy and unicode keyword arguments:

>>>> def f(**kwargs):
....     print kwargs
....
>>>> f(**{'foo':42})
{'foo': 42}
>>>> f(**{u'foo':42})
{'foo': 42}
>>>> f(**{u'\u20ac':42})
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: keyword cannot be encoded to ascii


u'foo' works fine, however u'\u20ac' (the Euro-currency sign) fails.

This works fine on CPython 2.6.5 and newer.

----------
messages: 2626
nosy: irmen, pypy-issue
priority: bug
status: unread
title: Pypy doesn't allow some unicode keyword arguments

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue751>
________________________________________


More information about the pypy-issue mailing list