Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

func_loopvar_in_dict_comp_py27.py 166B

12345678
  1. """Tests for loopvar-in-closure."""
  2. __revision__ = 0
  3. def bad_case():
  4. """Loop variable from dict comprehension."""
  5. return {x: lambda: x for x in range(10)}