Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:
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. ---------- nosy: +steven.daprano resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42656> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com