|
|
@ -642,7 +642,7 @@ func(*args, **kwargs) |
|
|
|
<div><h3 id="otheruses">Other Uses</h3><pre><code class="python language-python hljs"><list> = [*<collection> [, ...]] <span class="hljs-comment"># Or: list(<coll>) [+ ...]</span> |
|
|
|
<tuple> = (*<collection>, [...]) <span class="hljs-comment"># Or: tuple(<coll>) [+ ...]</span> |
|
|
|
<set> = {*<collection> [, ...]} <span class="hljs-comment"># Or: set(<coll>) [| ...]</span> |
|
|
|
<dict> = {**<dict>, ...} <span class="hljs-comment"># Or: <dict> | ...</span> |
|
|
|
<dict> = {**<dict> [, ...]} <span class="hljs-comment"># Or: <dict> | ...</span> |
|
|
|
</code></pre></div> |
|
|
|
|
|
|
|
<pre><code class="python language-python hljs">head, *body, tail = <collection> <span class="hljs-comment"># Head or tail can be omitted.</span> |
|
|
|