Denormalization ???
Douglas Mayle <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
I'm having a problem serializing out to yaml in a format I expect. My
documents with dictionaries look something like this:
1:
text: value
text2: value2
>>> import yaml
>>> yaml.load('1:\n text: value\n text2: value2')
{1: {'text2': 'value2', 'text': 'value'}}
>> loaded=yaml.load('1:\n text: value\n text2: value2')
>>> yaml.dump(loaded)
'1: {text: value, text2: value2}\n'
>>> print yaml.dump(loaded)
1: {text: value, text2: value2}
I can't get the output to resemble the original document. The
internal dictionary is output with braces. Is there a way to output
something closer to the original?
Thanks,
Doug
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core