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 bjs
Recipients bjs, ctf.challenge.pushpam
Date 2020-09-30.15:54:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601481244.62.0.0785847114948.issue41893@roundup.psfhosted.org>
In-reply-to
Content
See the note in https://docs.python.org/3.7/reference/compound_stmts.html#the-for-statement "There is a subtlety when the sequence is being modified by the loop ..."

Since your code is mutating the  all_fields  list as you iterate it, you get the " next item will be skipped " behaviour, which is why the loop is skipping over "password".  remove() was never called to remove "password".

There is an open issue https://bugs.python.org/issue32767 to clarify the docs about this,  but it is not a bug in Python.
History
Date User Action Args
2020-09-30 15:54:04bjssetrecipients: + bjs, ctf.challenge.pushpam
2020-09-30 15:54:04bjssetmessageid: <1601481244.62.0.0785847114948.issue41893@roundup.psfhosted.org>
2020-09-30 15:54:04bjslinkissue41893 messages
2020-09-30 15:54:04bjscreate