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.

star_needs_assignment_target_py35.py 445B

123456789101112131415
  1. """
  2. Test PEP 0448 -- Additional Unpacking Generalizations
  3. https://www.python.org/dev/peps/pep-0448/
  4. """
  5. # pylint: disable=superfluous-parens
  6. UNPACK_TUPLE = (*range(4), 4)
  7. UNPACK_LIST = [*range(4), 4]
  8. UNPACK_SET = {*range(4), 4}
  9. UNPACK_DICT = {'a': 1, **{'b': '2'}}
  10. UNPACK_DICT2 = {**UNPACK_DICT, "x": 1, "y": 2}
  11. UNPACK_DICT3 = {**{'a': 1}, 'a': 2, **{'a': 3}}
  12. UNPACK_IN_COMP = {elem for elem in (*range(10))} # [star-needs-assignment-target]