Re: when the keys are not unique: mapping and merging

Andrey Somov <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <CAEO54bEzGpViFC3Dik44=7QwT+RLaA6H8tXMB-keZSH++o7JMA@mail.gmail.com>
Please be aware that you cannot rely on un-specified behavior.

Your YAML document may be parsed differently on another platform (or
even fail to parse !).
PyYAML may also change the behavior as a bug fix for another reported problem.

If you rely only on the explicitly specified features you are safe. If
you miss something in the specification (or in the implementation) you
may always ask a question here. Otherwise the parsers will get a bunch
of hacks which are difficult to maintain. (even though the hack may
look natural for one language or platform)

-
Andrey

On Tue, Jan 24, 2012 at 4:35 PM,  <[email protected]> wrote:
> I have a large application using PyYAML which relies on merging of
> non-unique keys.   If the values are strings, they are catenated; otherwise
> a list of all values with the same key is built.     Will this be affected
> by any future changes to the specification?
>
> Thanks,
>
> Keith
>

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.