Update dicts documentation. (#361)
This commit is contained in:
parent
8334f938c1
commit
b669088a95
|
@ -34,3 +34,49 @@ dictionary, and the sum of a single dictionary is a copy of itself.
|
||||||
A new `dict` that has all the entries of the given dictionaries.
|
A new `dict` that has all the entries of the given dictionaries.
|
||||||
|
|
||||||
|
|
||||||
|
<a id="#dicts.omit"></a>
|
||||||
|
|
||||||
|
## dicts.omit
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
dicts.omit(<a href="#dicts.omit-dictionary">dictionary</a>, <a href="#dicts.omit-keys">keys</a>)
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
Returns a new `dict` that has all the entries of `dictionary` with keys not in `keys`.
|
||||||
|
|
||||||
|
**PARAMETERS**
|
||||||
|
|
||||||
|
|
||||||
|
| Name | Description | Default Value |
|
||||||
|
| :------------- | :------------- | :------------- |
|
||||||
|
| <a id="dicts.omit-dictionary"></a>dictionary | A <code>dict</code>. | none |
|
||||||
|
| <a id="dicts.omit-keys"></a>keys | A sequence. | none |
|
||||||
|
|
||||||
|
**RETURNS**
|
||||||
|
|
||||||
|
A new `dict` that has all the entries of `dictionary` with keys not in `keys`.
|
||||||
|
|
||||||
|
|
||||||
|
<a id="#dicts.pick"></a>
|
||||||
|
|
||||||
|
## dicts.pick
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
dicts.pick(<a href="#dicts.pick-dictionary">dictionary</a>, <a href="#dicts.pick-keys">keys</a>)
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
Returns a new `dict` that has all the entries of `dictionary` with keys in `keys`.
|
||||||
|
|
||||||
|
**PARAMETERS**
|
||||||
|
|
||||||
|
|
||||||
|
| Name | Description | Default Value |
|
||||||
|
| :------------- | :------------- | :------------- |
|
||||||
|
| <a id="dicts.pick-dictionary"></a>dictionary | A <code>dict</code>. | none |
|
||||||
|
| <a id="dicts.pick-keys"></a>keys | A sequence. | none |
|
||||||
|
|
||||||
|
**RETURNS**
|
||||||
|
|
||||||
|
A new `dict` that has all the entries of `dictionary` with keys in `keys`.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue