Bug #801349: document that start/stop/step slice arguments can be None

This commit is contained in:
Georg Brandl 2006-02-19 00:12:42 +00:00
parent b2699b242d
commit 1dc5a84aee
2 changed files with 7 additions and 6 deletions

View file

@ -3905,7 +3905,7 @@ _PyEval_SliceIndex(PyObject *v, Py_ssize_t *pi)
}
} else {
PyErr_SetString(PyExc_TypeError,
"slice indices must be integers");
"slice indices must be integers or None");
return 0;
}
*pi = x;