[issue20015] Allow 1-character ASCII unicode where 1-character str is required

Antoine Pitrou report at bugs.python.org
Mon Mar 3 16:36:46 CET 2014


Antoine Pitrou added the comment:

However, do note that the semantics will end up different from other uses of unicode. e.g.:

>>> "aa".strip(u"b")
u'aa'

In str.strip(), passing an unicode parameter returns an unicode string. In str.ljust(), passing an unicode parameter will return a byte string.

----------

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


More information about the Python-bugs-list mailing list