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
Input:
from tomlkit import parse parse(""" namespace.key1 = "value1" namespace.key2 = "value2" """)
Expected output:
{'namespace': {'key1': 'value1', 'key2': 'value2'}}
Actual output:
{'namespace': {'key1': 'value1'}}
It seems subsequent additions to the subtable via a dotted key are lost.
UPDATE: After further investigation it looks like the bug must be in the TOMLDocument object rather than the parsing logic.
consider:
>>> doc = parse(""" namespace.key1 = "value1" namespace.key2 = "value2" """) >>> repr(doc) "{'namespace': {'key1': 'value1'}}" >>> dict(doc) {'namespace': {'key1': 'value1'}} >>> str(doc) "{'namespace': {'key1': 'value1', 'key2': 'value2'}}"
The text was updated successfully, but these errors were encountered:
suffer the same problem 🤣
Sorry, something went wrong.
I've created a fork of tomlkit v0.7.0 with the issue fixed, try it:
GitHub: https://github.com/frostming/atoml PyPI: https://pypi.org/project/atoml
Successfully merging a pull request may close this issue.
Input:
Expected output:
Actual output:
It seems subsequent additions to the subtable via a dotted key are lost.
UPDATE: After further investigation it looks like the bug must be in the TOMLDocument object rather than the parsing logic.
consider:
The text was updated successfully, but these errors were encountered: