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
Given this file:
[site.user] name = "John"
Then re-assign the table to be a string:
parsed = tomlkit.parse(open("my.toml").read()) parsed['site']['user']="Tom" print(parsed.as_string())
gives:
user = "Tom"
The table header is missing! tomlkit version: v0.5.1
One needs to reassign the parent:
v = parsed['site'] parsed['site'] = v.copy() parsed['site']['user']="Tom" print(parsed.as_string())
[site] user = "Tom"
The text was updated successfully, but these errors were encountered:
This is fixed in the latest 0.5.2 release.
0.5.2
Sorry, something went wrong.
No branches or pull requests
Issue
Given this file:
Then re-assign the table to be a string:
gives:
The table header is missing!
tomlkit version: v0.5.1
Workaround
One needs to reassign the parent:
The text was updated successfully, but these errors were encountered: