473,287 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

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 1168

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Wilk | last post by:
Hi, It seems that the link for python-yaml on the http://yaml.org main page is loose (http://iron.cx/yaml) :-( Anybody knows what's append ? What do you use ? pure python-yaml or syck ? ...
0
by: Jane Austine | last post by:
Hello. I love yaml. I've been using PyYaml and heard it's far behind Syck in its functionality and performance. I'd like to try Syck with python but I have to compile it for my windows...
30
by: Reinhold Birkenfeld | last post by:
Hello, I know that there are different YAML engines for Python out there (Syck, PyYaml, more?). Which one do you use, and why? For those of you who don't know what YAML is: visit...
0
by: Phlip | last post by:
YAML? YAML YAML? Yet Another Missing Library? Is there a YAML implementation for C++? Need I remind y'all how easily one can implement YAML using Brand X?
0
by: Stephen Moore | last post by:
hello I have a situation where I have quite a large python object which I want to convert to yaml so I can then send it to a flex application using pyamf. I've managed to create a yaml...
0
by: Stephen Moore | last post by:
On Fri, Jun 6, 2008 at 8:20 PM, Kirill Simonov <xi@gamma.dn.uawrote: yes, that's exactly what I wanted :) however it still caused problems... but I've managed to make it so it doesn't use...
0
by: Kirill Simonov | last post by:
======================== Announcing PyYAML-3.06 ======================== A new bug fix release of PyYAML is now available: http://pyyaml.org/wiki/PyYAML Changes
0
by: Matthew Wilson | last post by:
I suspect the solution to my problem is something really trivial. I wrote a module called pitz that contains a class Issue: u'ditz.rubyforge.org,2008-03-06/issue' Then I try to load a...
2
by: sshub | last post by:
I am using YAML module(Config:YAML) for one of the perl script. When i run the script, i get an error saying like ' Can't locate YAML.pm in ..........'. The error is pointing to a line 7 of the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.