Re: list-like behaviour of etree.Element

2007-03-05 Thread [EMAIL PROTECTED]
On Mar 5, 1:00 am, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > Raymond Hettinger wrote: > > On Mar 4, 12:48 pm, "Daniel Nogradi" <[EMAIL PROTECTED]> wrote: > >> The etree.Element (or ElementTree.Element) supports a number of > >> list-like methods: append, insert, remove. Any special reason why it

Re: list-like behaviour of etree.Element

2007-03-05 Thread John Machin
On Mar 5, 8:00 pm, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > > extend() will be in the next release: > >http://effbot.org/zone/elementtree-changes-13.htm > Hi Fredrik, "The library requires Python 2.2 or newer." -- Does this apply to cElementTree as well? Reason for asking: my xlrd packag

Re: list-like behaviour of etree.Element

2007-03-05 Thread Daniel Nogradi
> >> 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 Lun

Re: list-like behaviour of etree.Element

2007-03-05 Thread Fredrik Lundh
Raymond Hettinger wrote: > On Mar 4, 12:48 pm, "Daniel Nogradi" <[EMAIL PROTECTED]> 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 meth

Re: list-like behaviour of etree.Element

2007-03-04 Thread Raymond Hettinger
On Mar 4, 12:48 pm, "Daniel Nogradi" <[EMAIL PROTECTED]> 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. Perh

Re: list-like behaviour of etree.Element

2007-03-04 Thread Terry Reedy
"Daniel Nogradi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | 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 qu

list-like behaviour of etree.Element

2007-03-04 Thread Daniel Nogradi
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)? -- http://mail.python.org/mailman/listinfo/python-list