You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
20 lines
456 B
Python
20 lines
456 B
Python
# Python 3.5+ PEP 448 - Additional Unpacking Generalizations for dictionaries
|
|
# RUNNABLE!
|
|
b = {**{}}
|
|
assert b == {}
|
|
c = {**{'a': 1, 'b': 2}}
|
|
assert c == {'a': 1, 'b': 2}
|
|
d = {**{'x': 1}, **{'y': 2}}
|
|
assert d == {'x': 1, 'y': 2}
|
|
# {'c': 1, {'d': 2}, **{'e': 3}}
|
|
[*[]]
|
|
|
|
assert {0: 0} == {**{0:0 for a in c}}
|
|
|
|
# FIXME: assert deparsing is incorrect for:
|
|
# {**{}, **{}}
|
|
# assert {} == {**{}, **{}, **{}}
|
|
|
|
# {**{}, **{}, **{}}
|
|
# assert {} == {**{}, **{}, **{}}
|