[New-bugs-announce] [issue10521] str methods don't accept non-BMP fillchar on a narrow Unicode build

Alexander Belopolsky report at bugs.python.org
Wed Nov 24 16:25:25 CET 2010


New submission from Alexander Belopolsky <belopolsky at users.sourceforge.net>:

>>> 'xyz'.center(20, '\U00100140')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: The fill character must be exactly one character long

str.ljust and str.rjust are similarly affected.

----------
components: Interpreter Core
messages: 122280
nosy: belopolsky
priority: normal
severity: normal
stage: needs patch
status: open
title: str methods don't accept non-BMP fillchar on a narrow Unicode build
type: behavior
versions: Python 3.2

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


More information about the New-bugs-announce mailing list