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 the HOCON config:
my_string_value = "True"
and the following code:
from pyhocon import ConfigFactory config = ConfigFactory.parse_file("test.conf") print repr(config.get_string("my_string_value"))
You get the following output:
u'true'
When I expected it to output:
u'True'
The code for get_string has special handling for "True" and "False". This special handling should probably be moved to get_bool.
get_string
get_bool
The text was updated successfully, but these errors were encountered:
I'll be submitting a Pull Request for this in a bit. I just have to understand how this happened in the first place.
Sorry, something went wrong.
dcf0fff
No branches or pull requests
Given the HOCON config:
and the following code:
You get the following output:
When I expected it to output:
The code for
get_string
has special handling for "True" and "False". This special handling should probably be moved toget_bool
.The text was updated successfully, but these errors were encountered: