You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm programmaticaly building out list paths and apparently, getting the root of the object with dpath.get() when using list paths is impossible.
For example:
x= {
"a": {
"b": {
"3": 2,
"43": 30,
"c": [],
"d": ['red', 'buggy', 'bumpers'],
}
}
}
# I would expect this to work but it gets a KeyError exceptiondpath.get(x, []) ==x# This evaluates to True thanks to https://github.com/dpath-maintainers/dpath-python/issues/54dpath.get(x, '/') ==x