It doesn't work in PyYaml:
ConstructorError: while constructing a mapping
in "<string>", line 9, column 3:
<< : [*one, *two]
^
expected a mapping for merging, but found sequence
in "<string>", line 2, column 8:
pasta: &one
^
Even the specs (http://yaml.org/type/merge.html) say that it works only for mappings. I have no idea why it doesn't apply to sequences, it would be very useful indeed
It doesn't work in PyYaml:
ConstructorError: while constructing a mapping
in "<string>", line 9, column 3:
<< : [*one, *two]
^
expected a mapping for merging, but found sequence
in "<string>", line 2, column 8:
pasta: &one
^
Even the specs (http://yaml.org/type/merge.html) say that it works only for mappings. I have no idea why it doesn't apply to sequences, it would be very useful indeed