Preserving Anchors for Numeric Value 0 in ruamel.yaml
I’m encountering an issue with preserving YAML anchors for numeric value, particularly with the number 0 all the other numeric value works fine, when using ruamel.yaml
. Here’s what’s happening:
Preserving Anchors for Numeric Value 0 in ruamel.yaml
I’m encountering an issue with preserving YAML anchors for numeric value, particularly with the number 0 all the other numeric value works fine, when using ruamel.yaml
. Here’s what’s happening:
Preserving Anchors for Numeric Value 0 in ruamel.yaml
I’m encountering an issue with preserving YAML anchors for numeric value, particularly with the number 0 all the other numeric value works fine, when using ruamel.yaml
. Here’s what’s happening:
Preserving Anchors for Numeric Value 0 in ruamel.yaml
I’m encountering an issue with preserving YAML anchors for numeric value, particularly with the number 0 all the other numeric value works fine, when using ruamel.yaml
. Here’s what’s happening:
Preserving Anchors for Numeric Value 0 in ruamel.yaml
I’m encountering an issue with preserving YAML anchors for numeric value, particularly with the number 0 all the other numeric value works fine, when using ruamel.yaml
. Here’s what’s happening:
ruamel.yaml – indicate preferred quoting style on dump
Following from this question, I’d like to set a preferred quoting style to be double-quotes, yet allow strings that can be represented as plain (no quotes) to be shown in plain. This is because I’m trying to fit a “house style” even though single quotes are valid yaml and maybe even preferable for some. Here’s a simple test-case:
Lose quotes around date when writing to YAML file
I have this script:
Keep comments in Ruamel yaml square bracket lists
If I have said yaml file: