diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-19 17:37:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-19 17:37:40 (GMT) |
commit | 80ec8364f15857c405ef0ecb1e758c8fc6b332f7 (patch) | |
tree | bf8bfdbf42d3c2aeca0f085777979f873427c642 /Objects | |
parent | a5af6e1af77ee0f9294c5776478a9c24d9fbab94 (diff) | |
download | cpython-80ec8364f15857c405ef0ecb1e758c8fc6b332f7.zip cpython-80ec8364f15857c405ef0ecb1e758c8fc6b332f7.tar.gz cpython-80ec8364f15857c405ef0ecb1e758c8fc6b332f7.tar.bz2 |
bpo-29748: Added the slice index converter in Argument Clinic. (#549)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/listobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index 9c1c9d9..9b42106 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -2210,8 +2210,8 @@ PyList_AsTuple(PyObject *v) list.index value: object - start: object(converter="_PyEval_SliceIndex", type="Py_ssize_t") = 0 - stop: object(converter="_PyEval_SliceIndex", type="Py_ssize_t", c_default="PY_SSIZE_T_MAX") = sys.maxsize + start: slice_index(accept={int}) = 0 + stop: slice_index(accept={int}, c_default="PY_SSIZE_T_MAX") = sys.maxsize / Return first index of value. @@ -2222,7 +2222,7 @@ Raises ValueError if the value is not present. static PyObject * list_index_impl(PyListObject *self, PyObject *value, Py_ssize_t start, Py_ssize_t stop) -/*[clinic end generated code: output=ec51b88787e4e481 input=70b7247e398a6999]*/ +/*[clinic end generated code: output=ec51b88787e4e481 input=40ec5826303a0eb1]*/ { Py_ssize_t i; |