Skip to content

Commit 8e00649

Browse files
committed
Dict
1 parent 913817d commit 8e00649

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ value = <dict>.setdefault(key, default=None) # Same, but also adds default to
7979
```
8080

8181
```python
82-
<dict>.update(<dict>) # Or: dict_a = {**dict_a, **dict_b}.
82+
<dict>.update(<dict>)
8383
<dict> = dict(<collection>) # Creates a dict from coll. of key-value pairs.
8484
<dict> = dict(zip(keys, values)) # Creates a dict from two collections.
8585
<dict> = dict.fromkeys(keys [, value]) # Creates a dict from collection of keys.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ <h2 id="dictionary"><a href="#dictionary" name="dictionary">#</a>Dictionary</h2>
251251
&lt;dict&gt; = collections.defaultdict(&lt;type&gt;) <span class="hljs-comment"># Creates a dict with default value of type.</span>
252252
&lt;dict&gt; = collections.defaultdict(<span class="hljs-keyword">lambda</span>: <span class="hljs-number">1</span>) <span class="hljs-comment"># Creates a dict with default value 1.</span>
253253
</code></pre>
254-
<pre><code class="python language-python hljs">&lt;dict&gt;.update(&lt;dict&gt;) <span class="hljs-comment"># Or: dict_a = {**dict_a, **dict_b}.</span>
254+
<pre><code class="python language-python hljs">&lt;dict&gt;.update(&lt;dict&gt;)
255255
&lt;dict&gt; = dict(&lt;collection&gt;) <span class="hljs-comment"># Creates a dict from coll. of key-value pairs.</span>
256256
&lt;dict&gt; = dict(zip(keys, values)) <span class="hljs-comment"># Creates a dict from two collections.</span>
257257
&lt;dict&gt; = dict.fromkeys(keys [, value]) <span class="hljs-comment"># Creates a dict from collection of keys.</span>

0 commit comments

Comments
 (0)