4 ms·
>The literals off, no, and n, in various capitalizations (but not any capitalization!), are all false in yaml 1.1, while on, yes, and y are true. Fyi... I loo
by jasode 4y ago
>The literals off, no, and n, in various capitalizations (but not any capitalization!), are all false in yaml 1.1, while on, yes, and y are true.
Fyi... I looked at PyYAML source code and the parser code omitted single-character 'y' in the regex. Previous comment: https://news.ycombinator.com/item?id=26681295 https://news.ycombinator.com/item?id=26681295
- jwilk 4y ago> omitted the single character options of 'y' and 'Y' but it still has 'n' and 'N' 'n'/'N' were removed already in 2006: https://github.com/yaml/pyyaml/commit/8f9b8bed40a53c28 https://github.com/yaml/pyyaml/commit/8f9b8bed40a53c28