#3417 closed defect

Audit existing ported modules for del in for loops — at Version 2

Reported by: itamarst Owned by:
Priority: normal Milestone: Support Python 3
Component: unknown Version: n/a
Keywords: Cc:
Launchpad Bug:

Description (last modified by exarkun)

for k in d.keys():
    if something(x): del d[x]

is a bug in Python 3.

Easiest way to catch potential places this might be an issue is probably to run futurize on all ported modules, and then look at diffs.

Change History (2)

comment:1 Changed at 2020-09-28T16:36:44Z by itamarst

  • Keywords review added

comment:2 Changed at 2020-09-28T18:40:16Z by exarkun

  • Description modified (diff)
Note: See TracTickets for help on using tickets.