Menu

#732 Double cycle in list comprehension marked as a problem

1.3.18
closed-fixed
Editor (491)
5
2008-06-29
2008-06-19
pm13
No

In this code:

def double_cycle():
print [[i ** j for i in range(10)] for j in range(5)]

double_cycle()

the second "j" is marked as a problem (unused variable).

Also see the attached screenshot.

Discussion

  • pm13

    pm13 - 2008-06-19
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2008-06-29

    Logged In: YES
    user_id=617340
    Originator: NO

    Fixed for the next release.

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2008-06-29
    • milestone: --> 1.3.18
    • status: open --> closed-fixed