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 having trouble working with a dictionary with keys containing square brackets. From the docs I see that square brackets are considered as elements of regular exporessions. However, this is causing the issue in my case, because I just want them to be "normal" square brackets.
Code example
importdpathd= {'Position': {'Position x [mm]': 3}}
dpath.search(d, 'Position/Position x [mm]/*')
This outputs: {} instead of the expected {'Position': {'Position x [mm]': 3}}
Maybe there is already a solution for the problem, but I did not find it in the docs.
The text was updated successfully, but these errors were encountered:
I'm having trouble working with a dictionary with keys containing square brackets. From the docs I see that square brackets are considered as elements of regular exporessions. However, this is causing the issue in my case, because I just want them to be "normal" square brackets.
Code example
This outputs:
{}
instead of the expected{'Position': {'Position x [mm]': 3}}
Maybe there is already a solution for the problem, but I did not find it in the docs.
The text was updated successfully, but these errors were encountered: