From 9785ab97cf1f043ce8630378df68a4d5bee0fdec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 27 Mar 2025 18:54:59 +0100 Subject: [PATCH] Splat operator --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 07a6db3..5389f32 100644 --- a/README.md +++ b/README.md @@ -731,7 +731,7 @@ func(1, 2, z=3) = [* [, ...]] # Or: list() [+ ...] = (*, [...]) # Or: tuple() [+ ...] = {* [, ...]} # Or: set() [| ...] - = {**, ...} # Or: | ... + = {** [, ...]} # Or: | ... ``` ```python diff --git a/index.html b/index.html index 1a645fb..3017307 100644 --- a/index.html +++ b/index.html @@ -642,7 +642,7 @@ func(*args, **kwargs)

Other Uses

<list>  = [*<collection> [, ...]]  # Or: list(<coll>) [+ ...]
 <tuple> = (*<collection>, [...])   # Or: tuple(<coll>) [+ ...]
 <set>   = {*<collection> [, ...]}  # Or: set(<coll>) [| ...]
-<dict>  = {**<dict>, ...}          # Or: <dict> | ...
+<dict>  = {**<dict> [, ...]}       # Or: <dict> | ...
 
head, *body, tail = <collection>   # Head or tail can be omitted.