pyyaml
Default constructor parameters in pyyaml
I haven\'t been able to find out how to do this in the PyYAML documentation. I want to represent python classes I\'ve defined in YAML, and have a default value given to a parameter in the constructor[详细]
2023-03-31 14:33 分类:问答How do I write a representer for PyYAML?
I 开发者_JS百科want to have a custom function that serializes arbitrary python objects, like how the json.dump function has an optional arg called \'default\', that should be a function that the json[详细]
2023-03-30 07:06 分类:问答Loading document as raw string in yaml with PyYAML
I want to parse yaml documents like the following meta-info-1: val1 meta-info-2: val2 --- Plain text/markdown content![详细]
2023-03-23 05:29 分类:问答Any yaml libraries in Python that support dumping of long strings as block literals or folded blocks?
I\'d like to be able to dump a dictionary containing long strings that I\'d like to have in the block style for readability. For example:[详细]
2023-03-14 07:52 分类:问答PyYaml to SnakeYaml --- AWT-EventQueue-0" Can't construct a java object for tag:yaml.org,2002:java/object:
I am passing Yaml created with PyYaml to SnakeYaml and Snakeyaml does not seem to recognize anythin开发者_如何学Gog beyond the first line where !! exists and python/object is declared. I already have[详细]
2023-02-10 06:10 分类:问答Does django grok YML ? django not loading fixtures YML file (yml is not a known serialization)
I have successfully created my first django project. I have two apps in my project foo and foobar. I have created a folder named \'fixtures\' in each of the app folders. I have NOT specified a fixtu[详细]
2023-01-18 22:04 分类:问答Preserve new lines in YAML
How do I format a YAML document like this so that PyYAML c开发者_如何学JAVAan parse it properly?[详细]
2023-01-16 23:52 分类:问答yaml property value
I am using yaml file to store attribute and value. But some of the values need the current date to be appended.[详细]
2023-01-10 06:23 分类:问答How to default to CLoader in PyYaml.load
Is 开发者_如何学Gothere any way to have the default loader for PyYaml be CLoader. So instead of having to do[详细]
2023-01-08 05:22 分类:问答Dumping Collection to YAML file with PyYaml
I am writing a python application. I am trying to dump my python object into yaml using PyYaml. I am using Python 2.6 and running Ubuntu Lucid 10.04. I am using the PyYAML package in Ubuntu Package: h[详细]
2023-01-06 18:39 分类:问答