[issue3446] center, ljust and rjust are inconsistent with unicode parameters

Raymond Hettinger report at bugs.python.org
Tue Feb 24 08:19:39 CET 2009


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

In Py2.x, I think the desired behavior should match str.join().   If
either input in unicode the output is unicode.  If both are ascii, ascii
should come out.

For Py3.x, I think the goal was to have str.join() enforce that both
inputs are unicode.  If either are bytes, then you have to know the
encoding.

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list