2 ms·
From "The description of YAML in the README is inaccurate" https://github.com/KenKundert/nestedtext/issues/10 https://github.com/KenKundert/nestedtext/issues/10
by westurner 6y ago
From "The description of YAML in the README is inaccurate" https://github.com/KenKundert/nestedtext/issues/10 https://github.com/KenKundert/nestedtext/issues/10 :
> I will mention something else. The section about the "Norway problem" is not quite accurate. Some YAML loaders do in fact load no as false. These are usually YAML 1.1 loaders. YAML 1.2's default schema is the same as JSON's (only true, false, 'null and numbers are non-strings).
> Any YAML loader is free to use any schema it wants. That is, no loader is required to to load no as false. Good loaders should support multiple schemas and custom schemas. The Norway problem isn't technically a YAML problem but a schema problem.
> imho, YAML's biggest failing to date is not making things like this clear enough to the community.
> Note: PyYAML has a BaseLoader schema that loads all scalar values as strings.