Message154998
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. |
|
Date |
User |
Action |
Args |
2012-03-06 04:53:11 | eli.bendersky | set | recipients:
+ eli.bendersky, effbot, scoder, ezio.melotti, flox |
2012-03-06 04:53:10 | eli.bendersky | set | messageid: <1331009590.86.0.19034471797.issue14178@psf.upfronthosting.co.za> |
2012-03-06 04:53:10 | eli.bendersky | link | issue14178 messages |
2012-03-06 04:53:09 | eli.bendersky | create | |
|