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 <1438372679.96.0.887011259839.issue24724@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-07-31 19:58:00scodersetrecipients: + scoder, rhettinger, eli.bendersky, martin.panter, Eric S
2015-07-31 19:57:59scodersetmessageid: <1438372679.96.0.887011259839.issue24724@psf.upfronthosting.co.za>
2015-07-31 19:57:59scoderlinkissue24724 messages
2015-07-31 19:57:59scodercreate