comparison 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
comparison
equal deleted inserted replaced
72502:b021f1b03f96 72503:606652491366
1259 float_info -- a struct sequence with information about the float implementation.\n\ 1259 float_info -- a struct sequence with information about the float implementation.\n\
1260 float_repr_style -- string indicating the style of repr() output for floats\n\ 1260 float_repr_style -- string indicating the style of repr() output for floats\n\
1261 hexversion -- version information encoded as a single integer\n\ 1261 hexversion -- version information encoded as a single integer\n\
1262 int_info -- a struct sequence with information about the int implementation.\n\ 1262 int_info -- a struct sequence with information about the int implementation.\n\
1263 maxsize -- the largest supported length of containers.\n\ 1263 maxsize -- the largest supported length of containers.\n\
1264 maxunicode -- the largest supported character\n\ 1264 maxunicode -- the value of the largest Unicode codepoint\n\
1265 platform -- platform identifier\n\ 1265 platform -- platform identifier\n\
1266 prefix -- prefix used to find the Python library\n\ 1266 prefix -- prefix used to find the Python library\n\
1267 thread_info -- a struct sequence with information about the thread implementation.\n\ 1267 thread_info -- a struct sequence with information about the thread implementation.\n\
1268 version -- the version of this interpreter as a string\n\ 1268 version -- the version of this interpreter as a string\n\
1269 version_info -- version information as a named tuple\n\ 1269 version_info -- version information as a named tuple\n\
1534 if (Hash_InfoType.tp_name == 0) 1534 if (Hash_InfoType.tp_name == 0)
1535 PyStructSequence_InitType(&Hash_InfoType, &hash_info_desc); 1535 PyStructSequence_InitType(&Hash_InfoType, &hash_info_desc);
1536 SET_SYS_FROM_STRING("hash_info", 1536 SET_SYS_FROM_STRING("hash_info",
1537 get_hash_info()); 1537 get_hash_info());
1538 SET_SYS_FROM_STRING("maxunicode", 1538 SET_SYS_FROM_STRING("maxunicode",
1539 PyLong_FromLong(PyUnicode_GetMax())); 1539 PyLong_FromLong(0x10FFFF));
1540 SET_SYS_FROM_STRING("builtin_module_names", 1540 SET_SYS_FROM_STRING("builtin_module_names",
1541 list_builtin_module_names()); 1541 list_builtin_module_names());
1542 { 1542 {
1543 /* Assumes that longs are at least 2 bytes long. 1543 /* Assumes that longs are at least 2 bytes long.
1544 Should be safe! */ 1544 Should be safe! */