]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-94808: Add test coverage for "starred kind" in _PyPegen_set_expr_context...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 16 Sep 2024 08:43:31 +0000 (10:43 +0200)
committerGitHub <noreply@github.com>
Mon, 16 Sep 2024 08:43:31 +0000 (10:43 +0200)
Add test coverage for "starred kind" in _PyPegen_set_expr_context
(cherry picked from commit 8231a24454c854ea22590fd74733d29e4274122d)

Co-authored-by: Mark Jason Dominus (陶敏修) <mjd@pobox.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
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'