-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
filter and modify list of dicts #47
Comments
You need to iterate over the dicts list and change the value if your condition is satisfied. How would you expect to do it using this library? |
Actually, I already see a related issue here: #33 |
@quancore actually this is not possible. This request seems to go in the direction of add |
Yes, all the roads going to a capable path conversion like XPath. |
I close this issue moving it to #67. |
So I have a list of dicts like this (this dict could be in nested dict as well):
guilds = [{"ID":1, "Name":"x"}, {"ID":2, "Name":"y"}]
I want to modify the value of the
Name
key in the dict whichID
is 1. I could not find how can I do that with the library.The text was updated successfully, but these errors were encountered: