bpo-35224: Reverse evaluation order of key: value in dict comprehensions (GH-14139)



… as proposed in PEP 572; key is now evaluated before value.





https://bugs.python.org/issue35224
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index b830459..e5285c6 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -473,6 +473,8 @@
         self.check_suite("foo(b := 2, a=1)")
         self.check_suite("foo((b := 2), a=1)")
         self.check_suite("foo(c=(b := 2), a=1)")
+        self.check_suite("{(x := C(i)).q: x for i in y}")
+
 
 #
 #  Second, we take *invalid* trees and make sure we get ParserError