Re: lxml/ElementTree and .tail



Stefan Behnel wrote:


[Remove an element, remove following nodes]

Yes, it is. Just look at the API. It's an attribute of an Element, isn't it?
What other API do you know where removing an element from a data structure
leaves part of the element behind?

I guess it depends on what you regard an element to be...

[...]

IMHO, DOM has a pretty significant mismatch with Python.

....in the DOM or otherwise:

http://www.w3.org/TR/2006/REC-xml-20060816/#sec-logical-struct

Paul

.



Relevant Pages

  • Re: An ordered dictionary for the Python library?
    ... Do other Python programmers feel this lack? ... It is worth having an ordered data structure of some kind. ... An API that is identical to a dict, ...
    (comp.lang.python)
  • Re: Get content of a variable whose name is stored in a var
    ... the data structure, and then use substring (plus some other processing ... It can be done with the QleGetExp API, if it is an IMPORTED variable: ... the following service program: ...
    (comp.sys.ibm.as400.misc)
  • Re: Syslets, Threadlets, generic AIO support, v6
    ... 100% coverage for everything massively helps the uptake of an API, ... good number of apps are using it, and in particular a couple really ... diverse sources, into a single interface. ... each data source wants a different data structure to be reported. ...
    (Linux-Kernel)
  • Re: wpa supplicant/ipw3945, ESSID last char missing
    ... The current situation seems to be designed to add the new one and removing ... But we didn't have 6 months of the new API, ... included April 11th in Gentoo. ... Maybe we need FC6 to be ...
    (Linux-Kernel)
  • Re: Efficient Data Structures
    ... I agree with the others that the Red/Black tree should be easy to fix, and the SortedList will probably do what you want, too. ... This data structure is to hold large amounts of key-value pairs, and so needs to be efficient both in insertion and deletion. ... When removing the data, the minimum key with its data is to be removed. ...
    (microsoft.public.dotnet.languages.csharp)