Skip to content Skip to sidebar Skip to footer
Showing posts with the label Yaml

Pyyaml Parses '9:00' As Int

I have a file with the following data: classes: - 9:00 - 10:20 - 12:10 (and so on up to 21:0… Read more Pyyaml Parses '9:00' As Int

How Can I Ignore A Member When Serializing An Object With Pyyaml?

How can ignore the member Trivial._ignore when serializing this object? import yaml class Trivial(y… Read more How Can I Ignore A Member When Serializing An Object With Pyyaml?

Can I Speedup Yaml?

I made a little test case to compare YAML and JSON speed : import json import yaml from datetime im… Read more Can I Speedup Yaml?

Formatting Pyyaml Dump() Output

I have a list of dictionaries, which I want to serialize: list_of_dicts = [ { 'key_1': '… Read more Formatting Pyyaml Dump() Output

Dumping A Dictionary To A Yaml File While Preserving Order

I've been trying to dump a dictionary to a YAML file. The problem is that the program that impo… Read more Dumping A Dictionary To A Yaml File While Preserving Order

How To Do Yaml.safe_dump() And .safe_load() Of Python Object Without Yaml.yamlobject?

I want to serialize some object with yaml.safe_dump(). How can I serialize Python objects with add_… Read more How To Do Yaml.safe_dump() And .safe_load() Of Python Object Without Yaml.yamlobject?