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 steven.daprano
Recipients paul.moore, steve.dower, steven.daprano, tim.golden, valeriymartsyshyn, zach.ware
Date 2020-12-16.10:26:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608114377.94.0.191647087616.issue42656@roundup.psfhosted.org>
In-reply-to
Content
Hello valeriymartsyshyn,

This is for reporting bugs in the Python interpreter, it is not a help desk for learning how to program in Python. There are many places you can ask for help to debug your code, such as Reddit's r/learnpython, or Stackoverflow, or the tutor mailing list:

https://mail.python.org/mailman/listinfo/tutor

There are various Python IRC channels or Discuss, if you google you will soon find them.

In this case, your bug occurs because you are deleting items from the list as you are iterating over it. Don't do that.
History
Date User Action Args
2020-12-16 10:26:17steven.dapranosetrecipients: + steven.daprano, paul.moore, tim.golden, zach.ware, steve.dower, valeriymartsyshyn
2020-12-16 10:26:17steven.dapranosetmessageid: <1608114377.94.0.191647087616.issue42656@roundup.psfhosted.org>
2020-12-16 10:26:17steven.dapranolinkissue42656 messages
2020-12-16 10:26:17steven.dapranocreate