
Aug. 26, 2013
9:24 a.m.
Hi all I noticed a behaviour in lxml that surprised me, so I thought I would mention it. Versions - python 3.3.2, lxml 3.2.1. Consider the following - standard python slicing -
This is what I expected. Then look at this - lxml slicing -
The slicing worked, but it removed the contents of b. Is this intentional? Frank Millman

August 2013
9:45 a.m.
Frank Millman, 26.08.2013 08:24:
Yes, it's intentional and documented in a couple of places, e.g. here http://lxml.de/tutorial.html#elements-are-lists Stefan

August 2013
9:45 a.m.
Frank Millman, 26.08.2013 08:24:
Yes, it's intentional and documented in a couple of places, e.g. here http://lxml.de/tutorial.html#elements-are-lists Stefan
4199
Age (days ago)
4199
Last active (days ago)
2 comments
2 participants
participants (2)
-
Frank Millman
-
Stefan Behnel