By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,923 Members | 1,655 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,923 IT Pros & Developers. It's quick & easy.

Re: creating yaml without tags using pyyaml

P: n/a
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

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(())
Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.