mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
More unconsting.
This commit is contained in:
parent
f4e6928c4d
commit
02cbf4ae4b
9 changed files with 56 additions and 62 deletions
|
@ -40,7 +40,7 @@ bisect_right(PyObject *self, PyObject *args, PyObject *kw)
|
|||
int lo = 0;
|
||||
int hi = -1;
|
||||
int index;
|
||||
static const char *keywords[] = {"a", "x", "lo", "hi", NULL};
|
||||
static char *keywords[] = {"a", "x", "lo", "hi", NULL};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kw, "OO|ii:bisect_right",
|
||||
keywords, &list, &item, &lo, &hi))
|
||||
|
@ -70,7 +70,7 @@ insort_right(PyObject *self, PyObject *args, PyObject *kw)
|
|||
int lo = 0;
|
||||
int hi = -1;
|
||||
int index;
|
||||
static const char *keywords[] = {"a", "x", "lo", "hi", NULL};
|
||||
static char *keywords[] = {"a", "x", "lo", "hi", NULL};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kw, "OO|ii:insort_right",
|
||||
keywords, &list, &item, &lo, &hi))
|
||||
|
@ -137,7 +137,7 @@ bisect_left(PyObject *self, PyObject *args, PyObject *kw)
|
|||
int lo = 0;
|
||||
int hi = -1;
|
||||
int index;
|
||||
static const char *keywords[] = {"a", "x", "lo", "hi", NULL};
|
||||
static char *keywords[] = {"a", "x", "lo", "hi", NULL};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kw, "OO|ii:bisect_left",
|
||||
keywords, &list, &item, &lo, &hi))
|
||||
|
@ -167,7 +167,7 @@ insort_left(PyObject *self, PyObject *args, PyObject *kw)
|
|||
int lo = 0;
|
||||
int hi = -1;
|
||||
int index;
|
||||
static const char *keywords[] = {"a", "x", "lo", "hi", NULL};
|
||||
static char *keywords[] = {"a", "x", "lo", "hi", NULL};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kw, "OO|ii:insort_left",
|
||||
keywords, &list, &item, &lo, &hi))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue