Debian Bug Report for pyyaml 3.08/libyaml 0.1.2
Scott Kitterman <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
Details can be found at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=515634
The meat of the bug report is:
Given a small input file, such as
- &anchor 1
- &anchor 1
yaml.load() dies with an error:
yaml.composer.ComposerError: found duplicate anchor 'anchor'; first occurence
in "<string>", line 1, column 3:
- &anchor 1
^
second occurence
in "<string>", line 2, column 3:
- &anchor 1
^
This ought to be allowed; the YAML 1.1 spec says in 3.2.2.2:
When composing a representation graph from serialized events, an alias node
refers to the most recent node in the serialization having the specified
anchor. Therefore, anchors need not be unique within a serialization.
I'm not an expert in the yaml spec, so I leave it to you to decide if his
interpretation is correct.
Scott K
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H