[Python-modules-team] Bug#515634: python-yaml: YAML loader complains about non-unique anchors
Paul Evans
leonerd at leonerd.org.uk
Mon Feb 16 16:33:27 UTC 2009
Package: python-yaml
Version: 3.08-1
Severity: normal
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.
-- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-yaml depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libyaml-0-1 0.1.2-1 Fast YAML 1.1 parser and emitter l
ii python 2.5.2-3 An interactive high-level object-o
ii python-central 0.6.8 register and build utility for Pyt
python-yaml recommends no packages.
python-yaml suggests no packages.
-- no debconf information
More information about the Python-modules-team
mailing list