Message8094

Author irmen
Recipients irmen
Date 2013-08-26.16:46:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377535574.06.0.405632367007.issue2080@psf.upfronthosting.co.za>
In-reply-to
Content
When using unicode kwargs in a function call, the keyword is received as a str type in the function:

>>> def func(*vargs, **kwargs):
...   print "vargs=%r  kwargs=%r" % (vargs, kwargs)
...
>>> func(u'\u20ac', **{u'\u20ac': 42})
vargs=(u'\u20ac',)  kwargs={'\u20ac': 42}
>>>

Expected behavior: unicode kwargs should be of type unicode in the function.
History
Date User Action Args
2013-08-26 16:46:14irmensetrecipients: + irmen
2013-08-26 16:46:14irmensetmessageid: <1377535574.06.0.405632367007.issue2080@psf.upfronthosting.co.za>
2013-08-26 16:46:14irmenlinkissue2080 messages
2013-08-26 16:46:13irmencreate