[Python-checkins] cpython: PyUnicode_FromWideChar() and PyUnicode_FromUnicode() raise a ValueError if a

Terry Reedy tjreedy at udel.edu
Thu Dec 8 22:50:35 CET 2011


On 12/8/2011 4:12 PM, victor.stinner wrote:
> http://hg.python.org/cpython/rev/489ea02ed351
> changeset: 73889:489ea02ed351
> parent: 73887:c7638be1e430
> user: Victor Stinner<victor.stinner at haypocalc.com>
> date: Thu Dec 08 22:14:11 2011 +0100
> summary:
> PyUnicode_FromWideChar() and PyUnicode_FromUnicode() raise a ValueError if a
> character in not in range [U+0000; U+10ffff].
>> files:
> Objects/unicodeobject.c | 67 ++++++++++++++--------------
> 1 files changed, 34 insertions(+), 33 deletions(-)
>>> diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c

> +/* Maximum code point of Unicode 6.0: 0x10ffff (1,114,111) */
> +#define MAX_UNICODE 0x10ffff

Isn't this the value assigned, on all systems, to sys.maxunicode, in 
3.3? If so, it must already be defined somewhere else.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /