rongxin <se.wu.rong...@gmail.com> added the comment:

BTW, if this bug is true, there is a similar code snippet in the same file.
mmapmodule.c:
845 static int
846 mmap_ass_subscript(mmap_object *self, PyObject *item, PyObject *value)
847 {
...
888    else if (PySlice_Check(item)) {
889        Py_ssize_t start, stop, step, slicelen;
890        Py_buffer vbuf;
891
892        if (PySlice_Unpack(item, &start, &stop, &step) < 0) {
893            return -1;
894        }
895        slicelen = PySlice_AdjustIndices(self->size, &start, &stop, step);

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35842>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to