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
Context
Instead of changing the core one, it should return a new one to avoid changing the behavior of pyyaml.
In [2]: import yaml In [3]: yaml.load("gitrev: 10e10", Loader=yaml.loader.SafeLoader) Out[3]: {'gitrev': '10e10'} In [4]: yaml.load("gitrev: 100e100", Loader=yaml.loader.SafeLoader) Out[4]: {'gitrev': '100e100'} In [5]: from omegaconf import OmegaConf In [6]: yaml.load("gitrev: 100e100", Loader=yaml.loader.SafeLoader) Out[6]: {'gitrev': '100e100'} In [7]: OmegaConf.create("gitrev: 100e100") Out[7]: {'gitrev': 1e+102} In [8]: yaml.load("gitrev: 100e100", Loader=yaml.loader.SafeLoader) Out[8]: {'gitrev': 1e+102}
The text was updated successfully, but these errors were encountered:
Fixes #289 Omegaconf chaging SafeLoader (#295)
dda17b0
Successfully merging a pull request may close this issue.
Context
Instead of changing the core one, it should return a new one to avoid changing the behavior of pyyaml.
The text was updated successfully, but these errors were encountered: