bpo-29935: Fixed error messages in the index() method of tuple, list and deque (#887) (#907) (#909)

when pass indices of wrong type.
(cherry picked from commit d4edfc9abf)
(cherry picked from commit bf4bb2e430)
This commit is contained in:
Serhiy Storchaka 2017-03-30 20:31:46 +03:00 committed by GitHub
parent c90ff1b78c
commit 8b8bde44f3
6 changed files with 31 additions and 11 deletions

View file

@ -203,6 +203,7 @@ PyAPI_FUNC(unsigned long) _PyEval_GetSwitchInterval(void);
#ifndef Py_LIMITED_API
PyAPI_FUNC(int) _PyEval_SliceIndex(PyObject *, Py_ssize_t *);
PyAPI_FUNC(int) _PyEval_SliceIndexNotNone(PyObject *, Py_ssize_t *);
PyAPI_FUNC(void) _PyEval_SignalAsyncExc(void);
#endif