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.

unbalanced_tuple_unpacking_py30.py 292B

1234567891011
  1. """ Test that using starred nodes in unpacking
  2. does not trigger a false positive on Python 3.
  3. """
  4. __revision__ = 1
  5. def test():
  6. """ Test that starred expressions don't give false positives. """
  7. first, second, *last = (1, 2, 3, 4)
  8. *last, = (1, 2)
  9. return (first, second, last)