diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-30 18:29:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-30 18:29:23 +0300 |
commit | d4edfc9abffca965e76ebc5957a92031a4d6c4d4 (patch) | |
tree | d985a5ba3c7dd8ec3183014962d650724f61ece9 /Include/ceval.h | |
parent | 762ec97ea68a1126b8855996c61fa8239dc9fff7 (diff) | |
download | cpython-git-d4edfc9abffca965e76ebc5957a92031a4d6c4d4.tar.gz |
bpo-29935: Fixed error messages in the index() method of tuple, list and deque (#887)
when pass indices of wrong type.
Diffstat (limited to 'Include/ceval.h')
-rw-r--r-- | Include/ceval.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/ceval.h b/Include/ceval.h index 25976bb376..10be9d84ea 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -223,7 +223,7 @@ PyAPI_FUNC(Py_ssize_t) _PyEval_RequestCodeExtraIndex(freefunc); #ifndef Py_LIMITED_API PyAPI_FUNC(int) _PyEval_SliceIndex(PyObject *, Py_ssize_t *); -PyAPI_FUNC(int) _PyEval_SliceIndexOrNone(PyObject *, Py_ssize_t *); +PyAPI_FUNC(int) _PyEval_SliceIndexNotNone(PyObject *, Py_ssize_t *); PyAPI_FUNC(void) _PyEval_SignalAsyncExc(void); #endif |