Jan Hosang <jan.hos...@gmail.com> added the comment: I fixed the array_ass_slice for python 2.7 in the attached patch.
The problem should apply to python 3k as well: firstly the above which might stay unnoticed and secondly the function moves to much memory if the array size is increased: (Py_SIZE(a)-d-ihigh) items should be moved, because Py_SIZE(a) was already modified by array_resize, but the function moves (Py_SIZE(a)-ihigh) items. The attached patch for python 2.7 passes all unit tests for me. ---------- Added file: http://bugs.python.org/file14999/hasharray.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6071> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com