diff Python/sysmodule.c @ 72503:606652491366

#13054: sys.maxunicode is now always 0x10FFFF.
author Ezio Melotti <ezio.melotti@gmail.com>
date Thu, 29 Sep 2011 00:18:19 +0300
parents 2b21fcf3d9a9
children b534b56379cb
line wrap: on
line diff
--- a/Python/sysmodule.c	Wed Sep 28 22:34:18 2011 +0200
+++ b/Python/sysmodule.c	Thu Sep 29 00:18:19 2011 +0300
@@ -1261,7 +1261,7 @@
 hexversion -- version information encoded as a single integer\n\
 int_info -- a struct sequence with information about the int implementation.\n\
 maxsize -- the largest supported length of containers.\n\
-maxunicode -- the largest supported character\n\
+maxunicode -- the value of the largest Unicode codepoint\n\
 platform -- platform identifier\n\
 prefix -- prefix used to find the Python library\n\
 thread_info -- a struct sequence with information about the thread implementation.\n\
@@ -1536,7 +1536,7 @@
     SET_SYS_FROM_STRING("hash_info",
                         get_hash_info());
     SET_SYS_FROM_STRING("maxunicode",
-                        PyLong_FromLong(PyUnicode_GetMax()));
+                        PyLong_FromLong(0x10FFFF));
     SET_SYS_FROM_STRING("builtin_module_names",
                         list_builtin_module_names());
     {