News for hackers. Stuff that matters.
Re:The YAML Document from Hell by talideon on Thursday January 12, 2023 @07:29AM (#34352511)
I second that. And if people need to deal with YAML in Python, they should be using ruamel.yaml, which is a far superior library on just about every level: https://pypi.org/project/ruamel.yaml/
Re:The YAML Document from Hell by wyuenho on Thursday January 12, 2023 @07:36AM (#34352584)
* * *
Re:The YAML Document from Hell by lylecheatham on Thursday January 12, 2023 @04:26PM (#34360464)
Except that the author of ruamel.yaml:

refuses to use git [0]

refuses to take community submissions (except through Stack Overflow? Seems like a misuse of SO) [1]

and refuses to implement .dumps() [2].

He is difficult to work with, and any time I need to debug code that intimately deals with ruamel.yaml types, I wince.

[0] https://github.com/pycontribs/ruyaml/issues/1

[1] https://yaml.readthedocs.io/en/latest/contributing.html

[2] https://stackoverflow.com/a/63179923/15170511

Re:The YAML Document from Hell by talideon on Tuesday January 24, 2023 @07:43PM (#34512773)
Why would I care that the maintainer prefers Mercurial? The document you linked to doesn't say anything about them not taking community submissions: I think you need to scroll down further in the page. And it certainly doesn't say that you have to use SO to submit changes.