Thanks a lot for the pointer to StackOverflow. Your answer to How to change one of the attribute reference to anchor in ruamel.yaml from 2020 seems to answer also my question. Still have to try it out, but the given example is exactly my case.
Why I actually came here: I'm trying to find out how to construct a mapping, in Python that contains something like <<: *A or <<: [*A, *B]. So not reading the structure and updating it, but constructing it from scratch. Can you give any pointer to an example (like a test case) or other reference?
You are right, I was misled by the fact that several YAML checkers and YAML-JSON converters accept multiple << keys as "Valid YAML" and merge the referenced dicts successively. Apparently the correct form to specify it is <<: [*A. *B]
As I understand it, the issue seems to be that data = yaml.load(""" --- - &A a: 1 b: 2 - &B c: 3 d: 4 - <<: *A <<: *B """) gives an error "duplicate key", apparently because of << occurring twice. I understand that ruamel.yaml may not support it, but this is valid yaml, and << is not a normal key, but an operator.
Something went wrong with the attachment in the original post, and I didn't find a way to edit it, so once more the attachment.
Incompatibility import.sty and standalone.sty
Version information: standalone.cls 2015/07/15 v1.2 Class to compile TeX sub-files...
problem with path name when decorating with text along path