Re: list-like behaviour of etree.Element
- From: "Raymond Hettinger" <python@xxxxxxx>
- Date: 4 Mar 2007 23:44:16 -0800
On Mar 4, 12:48 pm, "Daniel Nogradi" <nogr...@xxxxxxxxx> wrote:
The etree.Element (or ElementTree.Element) supports a number of
list-like methods: append, insert, remove. Any special reason why it
doesn't support pop and extend (and maybe count)?
Those methods would not be hard to add. Perhaps, submit a feature
request to Fredrik Lundh on SourceForge and see what he thinks there
is merit in more closely emulating the list API. Of the methods you
listed, the case is probably strongest for extend().
Raymond
.
- Follow-Ups:
- Re: list-like behaviour of etree.Element
- From: Fredrik Lundh
- Re: list-like behaviour of etree.Element
- References:
- list-like behaviour of etree.Element
- From: Daniel Nogradi
- list-like behaviour of etree.Element
- Prev by Date: Descriptor/Decorator challenge
- Next by Date: Building a dictionary from a tuple of variable length
- Previous by thread: list-like behaviour of etree.Element
- Next by thread: Re: list-like behaviour of etree.Element
- Index(es):
Relevant Pages
|