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 "", line 1, in
TypeError: translate() takes exactly one argument (2 given)
>>>
http://docs.python.org/2/library/stdtypes
R. David Murray added the comment:
Python2 tends to document where unicode *is* supported, rather than where it is
not. And why would a TypeError be incorrect if the unicode type is not
supported?
I do not think it likely that this falls into the 'bug' category at this point
in the Python2 l
New submission from Florent Xicluna:
from Cookie import SimpleCookie
cookie = SimpleCookie()
cookie[u'apple'] = u'green'
Traceback (most recent call last):
File "", line 1, in
File
"/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/Cookie.py",
line 592,