Skip to content
New issue

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

Feature/write null values as comments #8

Merged

Conversation

ntrepid8
Copy link
Contributor

@ntrepid8 ntrepid8 commented Oct 5, 2015

This PR adds the ability to parse dictionaries with some None values without crashing. I looked to see if there were any comments in the main toml project about this and I came up with this:

toml-lang/toml#146 (comment)

Now the dump function will still print #key = null when a null value is encountered. This is particularly useful when printing out an example configuration file from a command line utility.

avakar pushed a commit that referenced this pull request Oct 5, 2015
…ents

Feature/write null values as comments
@avakar avakar merged commit 482efc5 into avakar:master Oct 5, 2015
@avakar
Copy link
Owner

avakar commented Oct 5, 2015

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants