[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3417: Audit existing ported modules for del in for loops

Tahoe-LAFS trac at tahoe-lafs.org
Mon Sep 28 18:40:16 UTC 2020


#3417: Audit existing ported modules for del in for loops
--------------------------+------------------------------
     Reporter:  itamarst  |      Owner:
         Type:  defect    |     Status:  new
     Priority:  normal    |  Milestone:  Support Python 3
    Component:  unknown   |    Version:  n/a
   Resolution:            |   Keywords:  review
Launchpad Bug:            |
--------------------------+------------------------------
Description changed by exarkun:

Old description:

> ```
> 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.

New description:

 {{{
 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.

--

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3417#comment:2>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list