Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

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

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 4, 2008, 2:02 AM

Post #1 of 2 (75 views)
Permalink
[issue3280] %c format does not accept large numbers on ucs-2 builds

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>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 4, 2008, 2:31 PM

Post #2 of 2 (57 views)
Permalink
[issue3280] %c format does not accept large numbers on ucs-2 builds [In reply to]

Amaury Forgeot d'Arc <amauryfa[at]gmail.com> added the comment:

Committed as r64717.

----------
resolution: -> fixed
status: open -> closed
type: -> behavior

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue3280>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.