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
pyhocon version 0.3.60
example code trying to load a dict:
from pyhocon import ConfigFactory my_dict = { "myStuff": { "myThing_r0.1": ["someVal"], } } cfg = ConfigFactory.from_dict(my_dict) print(f"expectation:\n{my_dict['myStuff'].keys()}") print(f"actual:\n{cfg['myStuff'].keys()}")
output:
expectation: dict_keys(['myThing_r0.1']) actual: odict_keys(['myThing_r0'])
you can see the .1 got dropped from the key.
.1
In another attempt, to replicate loading a settings file:
from pyhocon import ConfigFactory my_dict_str = """{ "myStuff": { "myThing_r0.1": ["someVal"], } } """ cfg = ConfigFactory.parse_string(my_dict_str) print(f"actual:\n{cfg['myStuff'].keys()}")
the output is:
actual: odict_keys(['"myThing_r0.1"'])
and you can see extra quotes getting added
The text was updated successfully, but these errors were encountered:
No branches or pull requests
pyhocon version 0.3.60
example code trying to load a dict:
output:
you can see the
.1
got dropped from the key.In another attempt, to replicate loading a settings file:
the output is:
and you can see extra quotes getting added
The text was updated successfully, but these errors were encountered: