From b669088a950c6d0890baa82327b67975ed56658e Mon Sep 17 00:00:00 2001 From: Alexandre Rostovtsev Date: Mon, 28 Mar 2022 12:06:10 -0400 Subject: [PATCH] Update dicts documentation. (#361) --- docs/dicts_doc.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/docs/dicts_doc.md b/docs/dicts_doc.md index 5e8bce6..9010392 100755 --- a/docs/dicts_doc.md +++ b/docs/dicts_doc.md @@ -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. + + +## dicts.omit + +
+dicts.omit(dictionary, keys)
+
+ +Returns a new `dict` that has all the entries of `dictionary` with keys not in `keys`. + +**PARAMETERS** + + +| Name | Description | Default Value | +| :------------- | :------------- | :------------- | +| dictionary | A dict. | none | +| keys | A sequence. | none | + +**RETURNS** + +A new `dict` that has all the entries of `dictionary` with keys not in `keys`. + + + + +## dicts.pick + +
+dicts.pick(dictionary, keys)
+
+ +Returns a new `dict` that has all the entries of `dictionary` with keys in `keys`. + +**PARAMETERS** + + +| Name | Description | Default Value | +| :------------- | :------------- | :------------- | +| dictionary | A dict. | none | +| keys | A sequence. | none | + +**RETURNS** + +A new `dict` that has all the entries of `dictionary` with keys in `keys`. + +