[New-bugs-announce] [issue3280] %c format does not accept large numbers on ucs-2 builds

Amaury Forgeot d'Arc report at bugs.python.org
Fri Jul 4 11:02:04 CEST 2008


New submission from Amaury Forgeot d'Arc <amauryfa at gmail.com>:

Since python3.0, chr(0x2f81a) works even on narrow Unicode builds, but 
>>> "%c" % 0x2f81a
OverflowError: %c arg not in range(0x10000) (narrow Python build)

Likewise, Py_BuildValue("C") should accept codes outside the BMP.

----------
components: Unicode
messages: 69247
nosy: amaury.forgeotdarc
severity: normal
status: open
title: %c format does not accept large numbers on ucs-2 builds
versions: Python 3.0

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


More information about the New-bugs-announce mailing list