[ Web Proxy ]
URL:
Viewing: https://patch-diff.githubusercontent.com/raw/python/cpython/pull/119222.patch [Back]  [Original]

From d7027888c43f21c73d84200106eb0a437ea22f3b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mark=20Jason=20Dominus=20=28=E9=99=B6=E6=95=8F=E4=BF=AE=29?=
 
Date: Mon, 20 May 2024 11:11:36 -0400
Subject: [PATCH] Add test coverage for "starred kind" in
 _PyPegen_set_expr_context

---
 Lib/test/test_unpack_ex.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Lib/test/test_unpack_ex.py b/Lib/test/test_unpack_ex.py
index c201d08f61b8cd8..9e2d54bd3a8c4ea 100644
--- a/Lib/test/test_unpack_ex.py
+++ b/Lib/test/test_unpack_ex.py
@@ -26,6 +26,12 @@
     >>> a == [7, 8, 9]
     True
 
+Unpack nested implied tuple
+
+    >>> [*[*a]] = [[7,8,9]]
+    >>> a == [[7,8,9]]
+    True
+
 Unpack string... fun!
 
     >>> a, *b = 'one'

Web Proxy Viewer  |  New URL  |  Original Page