This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients Eric S, eli.bendersky, martin.panter, rhettinger, scoder
Date 2015-07-31.19:57:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Whenever you feel a need for using range(len(...)), you are almost always doing something wrong. The problem in your code is that you are modifying the tree while iterating over it. However, please ask this question on the mailing list as the bug tracker is not the right place to discuss this.

> If we leave "children" as in "all <country> children of *root*", it doesn't illuminate the fact that if root had a great-great-grandchild also named <country>, then it would return that as well.

No, it wouldn't. It behaves exactly as described. Thus the reference to the XPath section for further explanations.
Date User Action Args
2015-07-31 19:58:00scodersetrecipients: + scoder, rhettinger, eli.bendersky, martin.panter, Eric S
2015-07-31 19:57:59scodersetmessageid: <>
2015-07-31 19:57:59scoderlinkissue24724 messages
2015-07-31 19:57:59scodercreate