-
Notifications
You must be signed in to change notification settings - Fork 518
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
Change dump(..., default_flow_style=...) default to False #199
Comments
Hmm. It looks like there are actually three flow styles: True, False, and None:
This isn't clear from the documentation: there is the FAQ which mentions use of
But there's no mention of what |
Fixed in f209365, unless I am mistaken. |
yep, fixed by #256 |
None != False |
See: yaml/pyyaml#199 Signed-off-by: Nikola Forró <nforro@redhat.com>
See: yaml/pyyaml#199 Signed-off-by: Nikola Forró <nforro@redhat.com>
This is probably the most annoying default in PyYAML. It's the only PyYAML FAQ
entry: https://pyyaml.org/wiki/PyYAMLDocumentation#frequently-asked-questions
Changing the default to always prefer indented/block style would be good, but
is not back compatible. Since we will be breaking backwards compat big time
with the upcoming safe-load-by-default changes, this change should probably be
timed with that one.
The text was updated successfully, but these errors were encountered: