Custom Query (121 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (22 - 24 of 121)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Ticket Resolution Summary Owner Reporter
#88 invalid Internal emitter error caused by yaml_emitter_set_output_string xi mzagrabe@…

Reported by mzagrabe@…, 6 years ago.

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@…

Reported by nick.demyanchuk@…, 4 years ago.

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@…

Reported by john.mcginnis@…, 7 years ago.

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?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Note: See TracQuery for help on using queries.