PEP 3132 unpacking should not raise an error (it may yield wrong results though at the moment), fixes #707.

This commit is contained in:
Dave Halter
2016-07-10 17:50:46 +02:00
parent 7d64069780
commit 1c0aa06c7d
4 changed files with 33 additions and 2 deletions

View File

@@ -533,6 +533,9 @@ def unpack_tuple_to_dict(evaluator, types, exprlist):
# This is something that is not yet supported, would also be difficult
# to write into a dict.
return {}
elif exprlist.type == 'star_expr': # `a, *b, c = x` type unpackings
# Currently we're not supporting them.
return {}
raise NotImplementedError