[issue18012] cannot assign unicode keys to SimpleCookie

Florent Xicluna report at bugs.python.org
Sun May 19 16:49:51 CEST 2013


Florent Xicluna added the comment:

you're right, this behavior is documented.

>>> u'read this short text'.translate(None, 'aeiou')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: translate() takes exactly one argument (2 given)
>>> 

http://docs.python.org/2/library/stdtypes.html#str.translate

----------
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18012>
_______________________________________


More information about the Python-bugs-list mailing list