comparison Python/sysmodule.c @ 47194:59ab2cf002fa legacy-trunk

Patch #2488: Add sys.maxsize.
author Martin v. Löwis <martin@v.loewis.de>
date Tue, 20 May 2008 08:11:19 +0000
parents b8e7a161611c
children 4fe192d48960
comparison
equal deleted inserted replaced
47193:14eb804b3fc7 47194:59ab2cf002fa
990 PyDoc_STR( 990 PyDoc_STR(
991 "\n\ 991 "\n\
992 Static objects:\n\ 992 Static objects:\n\
993 \n\ 993 \n\
994 maxint -- the largest supported integer (the smallest is -maxint-1)\n\ 994 maxint -- the largest supported integer (the smallest is -maxint-1)\n\
995 maxsize -- the largest supported length of containers.\n\
995 maxunicode -- the largest supported character\n\ 996 maxunicode -- the largest supported character\n\
996 builtin_module_names -- tuple of module names built into this interpreter\n\ 997 builtin_module_names -- tuple of module names built into this interpreter\n\
997 version -- the version of this interpreter as a string\n\ 998 version -- the version of this interpreter as a string\n\
998 version_info -- version information as a tuple\n\ 999 version_info -- version information as a tuple\n\
999 hexversion -- version information encoded as a single integer\n\ 1000 hexversion -- version information encoded as a single integer\n\
1343 PyString_FromString(Py_GetProgramFullPath())); 1344 PyString_FromString(Py_GetProgramFullPath()));
1344 SET_SYS_FROM_STRING("prefix", 1345 SET_SYS_FROM_STRING("prefix",
1345 PyString_FromString(Py_GetPrefix())); 1346 PyString_FromString(Py_GetPrefix()));
1346 SET_SYS_FROM_STRING("exec_prefix", 1347 SET_SYS_FROM_STRING("exec_prefix",
1347 PyString_FromString(Py_GetExecPrefix())); 1348 PyString_FromString(Py_GetExecPrefix()));
1349 SET_SYS_FROM_STRING("maxsize",
1350 PyInt_FromSsize_t(PY_SSIZE_T_MAX));
1348 SET_SYS_FROM_STRING("maxint", 1351 SET_SYS_FROM_STRING("maxint",
1349 PyInt_FromLong(PyInt_GetMax())); 1352 PyInt_FromLong(PyInt_GetMax()));
1350 SET_SYS_FROM_STRING("py3kwarning", 1353 SET_SYS_FROM_STRING("py3kwarning",
1351 PyBool_FromLong(Py_Py3kWarningFlag)); 1354 PyBool_FromLong(Py_Py3kWarningFlag));
1352 SET_SYS_FROM_STRING("float_info", 1355 SET_SYS_FROM_STRING("float_info",