mirror of
https://github.com/python/cpython.git
synced 2025-07-16 15:55:18 +00:00
Bug #801349: document that start/stop/step slice arguments can be None
This commit is contained in:
parent
b2699b242d
commit
1dc5a84aee
2 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue