-
Notifications
You must be signed in to change notification settings - Fork 526
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
Include options in loader #414
Comments
PyYAML doesn't have a truthy option, and it also doesn't read such an option from a config file... What does/should it do? |
It seems to be a functionality in yaml, which deals with the interpretation of keywords (e.g. yes/YES/Yes/on/On as True, or no/NO/No/off as False). Since I have a data structure using off/Off as keys, this is an impractical complication.. |
It's not possible to influence that in PyYAML via an option. You can just put your keys in single quotes, or wait until PyYAML implements the YAML 1.2 Core Schema, where things like |
Thanks, but its too bad that there is no workaround for this issue.. |
Hello,
since using PyYaml as a input file reader for my project i stumbled upon the "truthy" option.
I know, that it's possible to dissable the option using a yaml configuration file.. But since this would be the only instance of changeing this option, it might be easier having the option to add some options in the loader instead of an external config file.
Thanks in advance!
Cheers,
PS
The text was updated successfully, but these errors were encountered: