]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-94808: Add test coverage for "starred kind" in _PyPegen_set_expr_context (GH-119222)
authorMark Jason Dominus (陶敏修) <mjd@pobox.com>
Mon, 20 May 2024 20:29:17 +0000 (16:29 -0400)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 20:29:17 +0000 (20:29 +0000)
Add test coverage for "starred kind" in _PyPegen_set_expr_context

Lib/test/test_unpack_ex.py

index c201d08f61b8cd85f28aa40e0f199fe98d6dbf8b..9e2d54bd3a8c4eacb218cbe64f8d90278b0b5822 100644 (file)
@@ -26,6 +26,12 @@ Unpack implied tuple
     >>> a == [7, 8, 9]
     True
 
+Unpack nested implied tuple
+
+    >>> [*[*a]] = [[7,8,9]]
+    >>> a == [[7,8,9]]
+    True
+
 Unpack string... fun!
 
     >>> a, *b = 'one'