list-like behaviour of etree.Element
Terry Reedy
tjreedy at udel.edu
Sun Mar 4 22:46:24 EST 2007
"Daniel Nogradi" <nogradi at gmail.com> wrote in message
news:5f56302b0703041248k1d2b3d85g1cf9954eed475c22 at mail.gmail.com...
| 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)?
I think you should turn the question around: why should such be added?
I imagine that the author wrote the methods he and his users thought
necessary.
Anything more has various costs.
tjr
More information about the Python-list
mailing list