Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed missing definition of `item`
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
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) |
|
|
``` |
|
|
|
|
|