summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-02-19 00:12:42 (GMT)
committerGeorg Brandl <georg@python.org>2006-02-19 00:12:42 (GMT)
commit1dc5a84aee510f966849d32263466a6ec9c3da0c (patch)
treebfd88ad0b44bc10d10fca6ba8aa300dd11d11509 /Python
parentb2699b242d46312be13e7093ecf59ff949a190f7 (diff)
downloadcpython-1dc5a84aee510f966849d32263466a6ec9c3da0c.zip
cpython-1dc5a84aee510f966849d32263466a6ec9c3da0c.tar.gz
cpython-1dc5a84aee510f966849d32263466a6ec9c3da0c.tar.bz2
Bug #801349: document that start/stop/step slice arguments can be None
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 131f5a7..c371f28 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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;