[lxml-dev] Behaviour of Element.iter() changes when removing a node depending on whether the node has children or not
Stefan Behnel
stefan_ml at behnel.de
Sun Jul 6 21:13:01 CEST 2008
Hi,
Geoffrey Sneddon wrote:
> Behaviour of Element.iter() changes when removing a node
> depending on whether the node has children or not
Admittedly, the docs are not very explicit here, but it's common that
container modification during iteration results in undefined behaviour. This
also applies to lxml's tree iterator.
Stefan
More information about the lxml-dev
mailing list