creating yaml without tags using pyyaml
delfick755 at gmail.com
Fri Jun 6 15:57:47 CEST 2008
On Fri, Jun 6, 2008 at 8:20 PM, Kirill Simonov <xi at gamma.dn.ua> wrote:
> 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(())
yes, that's exactly what I wanted :)
however it still caused problems...
but I've managed to make it so it doesn't use tuples and now it all
seems to work.
thankyou for your help anyways, it's greatly appreciated :)
More information about the Python-list