Ticket #302 (new defect)

Opened 4 months ago

PyYAML shouldn't disallow duplicate anchors

Reported by: abstract_industry@… Owned by: xi
Priority: normal Component: pyyaml
Severity: minor Keywords:


From 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.



Add a comment

Modify Ticket

Change Properties
<Author field>
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from xi. Next status will be 'new'
The owner will be changed from xi to anonymous. Next status will be 'assigned'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.