[New-bugs-announce] [issue14648] Attempt to format ascii and non-ascii strings together fails with "... UCS2 ..."

Dmitry Dvoinikov report at bugs.python.org
Mon Apr 23 15:18:07 CEST 2012


New submission from Dmitry Dvoinikov <dmitry at targeted.org>:

Using Python 3.3.0a2 (default, Apr  1 2012, 19:34:58) [MSC v.1500 64 bit (AMD64)] on win32.

This line of code

"{0:s}{1:s}".format("ABC", "\u0410\u0411\u0412")

results in

SystemError: Cannot copy UCS2 characters into a string of ascii characters

----------
components: Interpreter Core
messages: 159014
nosy: ddvoinikov
priority: normal
severity: normal
status: open
title: Attempt to format ascii and non-ascii strings together fails with "... UCS2 ..."
type: behavior
versions: Python 3.3

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


More information about the New-bugs-announce mailing list