parent
05997b6e98
commit
8e174ba7de
3 changed files with 34 additions and 31 deletions
|
|
@ -5438,7 +5438,7 @@ def traverse_obj(
|
|||
|
||||
The keys in the path can be one of:
|
||||
- `None`: Return the current object.
|
||||
- `str`/`int`: Return `obj[key]`. For `re.Match, return `obj.group(key)`.
|
||||
- `str`/`int`: Return `obj[key]`. For `re.Match`, return `obj.group(key)`.
|
||||
- `slice`: Branch out and return all values in `obj[key]`.
|
||||
- `Ellipsis`: Branch out and return a list of all values.
|
||||
- `tuple`/`list`: Branch out and return a list of all matching values.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue