We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is is possible to use dynamic keys?
val = '12345' root.['test_'+val] = 'HELLO WORLD' print root.test_12345
The text was updated successfully, but these errors were encountered:
@lithiumlab This is a bug. It should accept root['test_'+val] = 'HELLO WORLD' (without the dot). I will look into it asap.
root['test_'+val] = 'HELLO WORLD'
Sorry, something went wrong.
The root of this issue is in DotObject which I just fixed there. seperman/dotobject#2
fixing dynamic key names possible in root? #1
7c04814
I just published 0.2.7 and this issue is fixed.
Now you can: root['test_'+val] = 'HELLO WORLD'
and even if you do
root['blah'] = 'foo' root['blah.ding'] = 'foo too'
later you can access it as
root.blah root.blah.ding
Merge pull request #1 from seperman/master
e563047
Merging sperman's branch
seperman
No branches or pull requests
Is is possible to use dynamic keys?
The text was updated successfully, but these errors were encountered: