Ingy döt Net

Results 172 comments of Ingy döt Net

@melezhik right. Since we are probably adding a better config system in the next release, the rough plan for this is that we add a config option for the format...

Also https://github.com/yaml/pyyaml/issues/121#issuecomment-1018117110

The ordering of dict keys can be disabled in the next release. 5.1 should be out in a week or 2. 5.1b1 is already out and 5.1b2 (with windows wheels...

Reopening this for a spell until the dust settles.

@benwhalley PyYAML is treating this as a generic class instance, and safe_dump does not handle those. Looks like a custom representer needs to be added. See https://github.com/yaml/pyyaml/blob/master/lib/yaml/representer.py#L269 for float representer....

@bcoca can you please check if this is in the Python emitter code or if it's libyaml (ie CDumper) (or both)?

Thanks @sivel. This will need to be fixed in both. Patches welcome :)

@webknjaz will do for the 4.2 release. Cheers.

@perlpunk what would be the default if no `yaml_version` is specified? I think it needs to be 1.1, with a deprecation period. The deprecation would look for things that change...