pyyaml
pyyaml copied to clipboard
Canonical source repository for PyYAML
Currently any truthy value of `sort_keys` will send the mapping pairs through `sorted()` before representing the mapping. This PR extends that functionality so that callable values of `sort_keys` will be...
It looks from reading the PyYAML source that YAML dicts are always presented as a Python `Ordereddict` but this is not explicitly stated anywhere that I can find in the...
See https://travis-ci.org/GreatFruitOmsk/nativeconfig/jobs/323100161 and https://travis-ci.org/GreatFruitOmsk/nativeconfig/jobs/323100162 for complete logs.
It seems misleading to me that the `yaml.load` docstring reads "Parse the *first* YAML document in a stream..." (emphasis mine) because it implies a multi-document stream can be loaded with...
For a YAML file like so: ``` test: &anchor foo: 2 bar: - a - b - c merge_test: - !merge_test
Fixed a few instances of "not x in y" by replacing them with the pep8 favored "x not in y"
Currently, the `construct_document()` fires generators width-first: ``` def construct_document(self, node): data = self.construct_object(node) while self.state_generators: state_generators = self.state_generators self.state_generators = [] for generator in state_generators: for dummy in generator: pass...
A document containing a top-level key named `on` is rendered as a boolean value instead of the literal string `on` when loading and dumping a document. If a top level...
As 27f9a993 locks cython version to older version and now `pyyaml` is one of the only few remaining modules still not possible to use with `cython` 3.x it would be...