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

provide option (preferably this would be the default) to ignore yes/no/Yes/No/on/off/etc. as booleans #53

Open
jason-s opened this issue Feb 16, 2017 · 3 comments
Labels

Comments

@jason-s
Copy link

jason-s commented Feb 16, 2017

Feature request: provide option (preferably this would be the default) to ignore yes/no/Yes/No/on/off/etc. as booleans.

PyYaml seems to be an odd hybrid between 1.1 and 1.2; its canonical form of boolean is true/false (1.1 says y and n) but it allows the full gamut of boolean forms from 1.1 including yes/no/Yes/No/on/off which are excluded from 1.2: http://www.yaml.org/spec/1.2/spec.html#id2804923

@bradj
Copy link

bradj commented Jul 6, 2017

@jason-s Have you found a workaround? Is it possible to dump a key with y or n that is wrapped in single quotes?

@jason-s
Copy link
Author

jason-s commented Jul 6, 2017

Have you found a workaround? Is it possible to dump a key with y or n that is wrapped in single quotes?

I think so, but my use of Python libraries is so bursty that I don't remember.

@xmnlab
Copy link

xmnlab commented Feb 5, 2023

this option would be really nice .. wrapping it using single quotes works but it is not that intuitive for all the users

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

No branches or pull requests

4 participants