commit | 48c8bf21f97aeb124dbd48bf2bdec1ab4ebc5202 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Jul 31 09:09:36 2018 +0300 |
committer | GitHub <noreply@github.com> | Tue Jul 31 09:09:36 2018 +0300 |
tree | 6678ae7f56e368ef192b8e0f5988f7c317dbb246 | |
parent | dc9039da239ee572eaaf56e4a026be1fc4d74e24 [diff] [blame] |
[2.7] bpo-34234: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact(). (GH-8479)
diff --git a/Python/ceval.c b/Python/ceval.c index b55b4d6..2088a27 100644 --- a/Python/ceval.c +++ b/Python/ceval.c
@@ -4750,8 +4750,7 @@ #undef ISINDEX -#define ISINDEX(x) ((x) == NULL || \ - PyInt_Check(x) || PyLong_Check(x) || PyIndex_Check(x)) +#define ISINDEX(x) ((x) == NULL || _PyAnyInt_Check(x) || PyIndex_Check(x)) static PyObject * apply_slice(PyObject *u, PyObject *v, PyObject *w) /* return u[v:w] */