Ticket #302 (new defect)
Opened 4 months ago
PyYAML shouldn't disallow duplicate anchors
|Reported by:||abstract_industry@…||Owned by:||xi|
From 126.96.36.199 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.