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 WoodyWoo
Recipients WoodyWoo, docs@python
Date 2020-10-01.00:25:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601511923.59.0.246596672954.issue41899@roundup.psfhosted.org>
In-reply-to
Content
#new code to avoid an err
index=0
count=len(root.findall("./*"))
while index <count:
    rank = int (root[index].find("rank").text)
    if rank>50:
        root.remove(root[index])
        index=index+0
        count=count-1  # avoid index err
        continue
    index=index+1
History
Date User Action Args
2020-10-01 00:25:23WoodyWoosetrecipients: + WoodyWoo, docs@python
2020-10-01 00:25:23WoodyWoosetmessageid: <1601511923.59.0.246596672954.issue41899@roundup.psfhosted.org>
2020-10-01 00:25:23WoodyWoolinkissue41899 messages
2020-10-01 00:25:23WoodyWoocreate