list-like behaviour of etree.Element
Raymond Hettinger
python at rcn.com
Mon Mar 5 02:44:16 EST 2007
On Mar 4, 12:48 pm, "Daniel Nogradi" <nogr... at gmail.com> 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
More information about the Python-list
mailing list