Files
python-uncompyle6/test/simple_source/bug38/01_named_expr.py
rocky c6ddefcef5 Merging in recent 3.7 and 3.8 improvements from decompyle6
This rebases 3.7, 3.8 ...decompilation off of 3.7ish rather than a 3.4
base.

Add more 3.7 and 3.8 tests
2019-12-08 17:54:59 -05:00

6 lines
148 B
Python

(x, y) = "foo", 0
if x := __name__:
y = 1
assert x == "__main__", "Walrus operator changes value"
assert y == 1, "Walrus operator branch taken"