about pyyaml questions!

Thanatos xiao yanxiaopei199 at gmail.com
Wed Aug 28 06:28:46 EDT 2013


Hi Guys:
   Now I use pyyaml to load a yaml file, after I dump this load data,but I
found an questions,before I load the yaml file,the file looks like:

aaaa
-
   -b
   -c
-
   -e
   -x

after I dump this data and write file, the file looks like:
aaaa
-  -b
   -c
-  -e
   -x

although when dump file, I have set default_flow_style=False

Can the dumped file the same as original file....?

ths.....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130828/4bd1a44b/attachment.html>


More information about the Python-list mailing list