News for hackers. Stuff that matters.
Re:Worst Bug Ever by anonymouz on Monday January 21, 2013 @05:13PM (#5094052)
Python (before version 3) leaks variables from list comprehension, while it seems natural to assume that the comprehension has its own scope. Makes for some funny bugs:

  i = ...
  ... # lots of code 
  [ do_stuff(i) for i in range(n) ]
  ...
  # whoops, our outside i has now been modified

There are no comments on this comment yet.