Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 43100:4e6b4ba60c3b
Remove the simple slicing API. All slicing is now done with slice objects.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Thu, 30 Aug 2007 22:57:53 +0000 |
| parents | 7bf8f2339ec6 |
| children | 1998ee0eff2c |
line wrap: on
line diff
--- a/Python/sysmodule.c Thu Aug 30 22:39:17 2007 +0000 +++ b/Python/sysmodule.c Thu Aug 30 22:57:53 2007 +0000 @@ -875,6 +875,7 @@ Static objects:\n\ \n\ maxint -- the largest supported integer (the smallest is -maxint-1)\n\ +maxsize -- the largest supported length of containers.\n\ maxunicode -- the largest supported character\n\ builtin_module_names -- tuple of module names built into this interpreter\n\ version -- the version of this interpreter as a string\n\ @@ -1087,6 +1088,8 @@ PyUnicode_FromString(Py_GetExecPrefix())); SET_SYS_FROM_STRING("maxint", PyInt_FromLong(PyInt_GetMax())); + SET_SYS_FROM_STRING("maxsize", + PyInt_FromLong(PY_SSIZE_T_MAX)); SET_SYS_FROM_STRING("maxunicode", PyInt_FromLong(PyUnicode_GetMax())); SET_SYS_FROM_STRING("builtin_module_names",
