[issue14178] Failing tests for ElementTree
Eli Bendersky
report at bugs.python.org
Tue Mar 6 05:53:10 CET 2012
Eli Bendersky <eliben at 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 <report at bugs.python.org>
<http://bugs.python.org/issue14178>
_______________________________________
More information about the Python-bugs-list
mailing list