summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-02-19 00:12:46 (GMT)
committerGeorg Brandl <georg@python.org>2006-02-19 00:12:46 (GMT)
commit394e4af6d51e958788cd92debda76514a81a2678 (patch)
tree3221285e6e2cb90b2f6ca62629fc76c95aecb7ad /Python/ceval.c
parent2aaf9186b90d51fe33f9c0893da1d09a2a711d1c (diff)
downloadcpython-394e4af6d51e958788cd92debda76514a81a2678.zip
cpython-394e4af6d51e958788cd92debda76514a81a2678.tar.gz
cpython-394e4af6d51e958788cd92debda76514a81a2678.tar.bz2
Bug #801349: document that start/stop/step slice arguments can be None
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index ee3b308..3779ae2 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3894,7 +3894,7 @@ _PyEval_SliceIndex(PyObject *v, int *pi)
}
} else {
PyErr_SetString(PyExc_TypeError,
- "slice indices must be integers");
+ "slice indices must be integers or None");
return 0;
}
/* Truncate -- very long indices are truncated anyway */