468,458 Members | 1,823 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,458 developers. It's quick & easy.

Re: creating yaml without tags using pyyaml

Stephen Moore wrote:
I have come to the conclusion that this is the fault of the tags (for
example, !!python/tuple) as getting rid of them gets rid of the
errors.

So I'm wondering if there is an option to YAML.decode that will create
a yaml document without the tags?
Try yaml.safe_dump().
>>import yaml
>>print yaml.dump(())
!!python/tuple []
>>print yaml.safe_dump(())
[]
Thanks,
Kirill
Jun 27 '08 #1
0 978

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Wilk | last post: by
reply views Thread by Jane Austine | last post: by
30 posts views Thread by Reinhold Birkenfeld | last post: by
reply views Thread by Phlip | last post: by
reply views Thread by Stephen Moore | last post: by
reply views Thread by Stephen Moore | last post: by
reply views Thread by Kirill Simonov | last post: by
reply views Thread by Matthew Wilson | last post: by
2 posts views Thread by sshub | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.