[issue4978] allow unicode keyword args
Amaury Forgeot d'Arc
report at bugs.python.org
Tue Jan 20 00:05:06 CET 2009
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
Sorry, but _PyUnicode_AsDefaultEncodedString returns either a borrowed reference (if
errors==NULL) or a new reference (if errors!=NULL).
In either case it's wrong to DECREF the string when you simply take the buffer's
address:
>>> f(**{u'someLongString':2})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: f() got an unexpected keyword argument 'ÛÛÛÛÛÛÛgString'
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4978>
_______________________________________
More information about the Python-bugs-list
mailing list