Eli Bendersky <eli...@gmail.com> added the comment: Attaching a patch that fixes the slice deletion problems.
The approach I've taken is follow a similar implementation in Objects/listobject.c; when a slice is deleted, it can be done efficiently by using memmove to shift whole blocks of leftover children. Also added a new test class to test_xml_etree specifically to test slicing with Element objects and deleting slices with strange steps. I'll leave it up for review for a couple of days before committing. ---------- keywords: +patch nosy: +effbot Added file: http://bugs.python.org/file24743/issue14178.1.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14178> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com