From 10a117476c729a333b9b07f4d12c39adcb9c053c Mon Sep 17 00:00:00 2001 From: Michael Overmeyer Date: Thu, 25 May 2017 09:34:45 -0400 Subject: [PATCH] Fixed missing definition of `item` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 80b2d3a9..5e4add8b 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ Let's say you have a huge nested object and want to see if any item with the wor ```py from deepdiff import DeepSearch obj = {"long": "somewhere", "string": 2, 0: 0, "somewhere": "around"} -ds = DeepSearch(obj, item, verbose_level=2) +ds = DeepSearch(obj, "somewhere", verbose_level=2) print(ds) ``` @@ -188,7 +188,7 @@ Just grep through your objects as you would in shell! ```py from deepdiff import grep obj = {"long": "somewhere", "string": 2, 0: 0, "somewhere": "around"} -ds = obj | grep(item) +ds = obj | grep("somewhere") print(ds) ```