Custom Query (121 matches)
Results (22 - 24 of 121)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #88 | invalid | Internal emitter error caused by yaml_emitter_set_output_string | xi | mzagrabe@… |
| Description |
Greetings, I am attempting to parse a yaml file in some C code and have most recently tried to use: yaml_emitter_set_output_string However after compiling and running the program I receive an internal emitter error. Files attached: yaml_error.c mzagrabe.yaml compiled with: gcc -c yaml_error.c && gcc -lyaml -o yaml_error yaml_error.o command line: % ./yaml_error mzagrabe.yaml libyaml version: Debian Sid ii libyaml-0-1 0.1.1-1 ii libyaml-dev 0.1.1-1 |
|||
| #184 | invalid | Invalid sequence handling | xi | nick.demyanchuk@… |
| Description |
Pyyaml improperly dumps sequence block. For example: >>> from yaml import load, dump
>>> cfg = """key:
- value
- another one
- foo
"""
>>> yaml_dict = load(cfg)
>>> print yaml_dict
{'key': ['value', 'another one', 'foo']}
>>> new_cfg = dump(yaml_dict)
>>> print new_cfg
key: [value, another one, foo]
|
|||
| #58 | wontfix | Is there a way?? | xi | john.mcginnis@… |
| Description |
a = yaml.load("""
name: John
number: 111
""")
print a
{'name': 'John', 'number': 111}
ok so if I do: print yaml.dump(a)
{name: John, number: 11}
and print yaml.dump(a, default_flow_style=False) name: John number: 111 My question is, is there a variable in the code that could make the block style the default output without having to reference the style preference all the time? |
|||
