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_no_dummy_redefined.py 299B

1234567891011121314
  1. """Make sure warnings about redefinitions do not trigger for dummy variables."""
  2. from __future__ import print_function
  3. _, INTERESTING = 'a=b'.split('=')
  4. value = 10
  5. def clobbering():
  6. """Clobbers a dummy name from the outer scope."""
  7. value = 9
  8. for _ in range(7):
  9. print(value)