Ticket #302 (new defect)
PyYAML shouldn't disallow duplicate anchors
|Reported by:||abstract_industry@…||Owned by:||xi|
From 220.127.116.11 of the YAML specification it is stated that anchors are not required to be unique. So far I haven't been able to figure out why this ability is blocked in PyYAML. Removing the error checking code for this section seems to make it function as expected against the spec.
It's expected that a duplicated anchor overwrites the previous instance thereby each new reference is the value of the last anchor specified.