mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Merge branches/pep-0384.
This commit is contained in:
parent
c4df784514
commit
4d0d471a80
102 changed files with 2835 additions and 75 deletions
|
@ -1272,7 +1272,7 @@ element_subscr(PyObject* self_, PyObject* item)
|
|||
if (!self->extra)
|
||||
return PyList_New(0);
|
||||
|
||||
if (PySlice_GetIndicesEx((PySliceObject *)item,
|
||||
if (PySlice_GetIndicesEx(item,
|
||||
self->extra->length,
|
||||
&start, &stop, &step, &slicelen) < 0) {
|
||||
return NULL;
|
||||
|
@ -1331,7 +1331,7 @@ element_ass_subscr(PyObject* self_, PyObject* item, PyObject* value)
|
|||
if (!self->extra)
|
||||
element_new_extra(self, NULL);
|
||||
|
||||
if (PySlice_GetIndicesEx((PySliceObject *)item,
|
||||
if (PySlice_GetIndicesEx(item,
|
||||
self->extra->length,
|
||||
&start, &stop, &step, &slicelen) < 0) {
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue