-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing behavior when using star globs and list indexing #166
Comments
Hi @igordertigor, I will also investigate the first issue you mentioned with the stars. Regards |
@igordertigor I've started investigating the other issue and it seems to be more problematic. I'm not sure I will be able to resolve it. Follow #173 for updates on that. |
Negative index suggestion also appears in #138. |
Sorry the issue closed automatically. I'm reopening until the second issue is resolved. |
When using
dpath.util.search
retrieves an empty list, it won't include it in the result:I find this behaviour counterintuitive: I tend to "pronounce" the star as "give me all items in this location". Hence if the item is an empty list, then I want that empty list. Am I misunderstanding something here? What would be the expected behaviour? Also, the final call illustrates something that I find particularly strange here: I would think of both globs to give the same results, but they don't seem to do so.
A second confusing thing seems to be the handling of numeric indexes for lists:
How would I pass negative indexes? Is that supported at all?
The text was updated successfully, but these errors were encountered: