Custom Query (132 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (31 - 33 of 132)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Ticket Resolution Summary Owner Reporter
#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?

#117 invalid Key Ordering xi pschmitt@…

Reported by pschmitt@…, 5 years ago.

Description

I dont understand how PyYAML reads YML files with "Block Mapping", (I call these "Nested variables" in my example):

>>> document = """
 Variable 1:
   x: a
   y: b
   z: c
 Variable 2:
   1: a
   2: b
   3: c
 """
>>> yml=yaml.load(document)
>>> yml.keys()
['Variable 2', 'Variable 1']

>>> yml["Variable 1"].keys()
 ['y', 'x', 'z']

So it looks like PyYAML loads the document in reverse order, "Variable 2" is read before "Variable 1". That's fine. But why is ymlVariable 1?.keys() in a random order? It seems like it should either be chronological (x,y,z) or reverse chronological (z,y,x).

I'm having a hard time parsing tickets #29 and #116, which might be related... Can you offer up some insight?

PS: Sorry if this is the wrong place for a question... I couldn't find a mailing list.

#95 invalid Libyaml svn revision 298 does not compile xi michael.the.drummer@…

Reported by michael.the.drummer@…, 6 years ago.

Description

Current trunk (revision 298) of libyaml does not compile no either my Ubuntu box or on OSX Tiger. There are 2 separate issues.

The first is a simple error in yaml_private.h. A Diff of this file is below.

Index: src/yaml_private.h
===================================================================
--- src/yaml_private.h	(revision 298)
+++ src/yaml_private.h	(working copy)
@@ -1231,7 +1231,7 @@
  * The information of a node being emitted.
  */
 
-struct typedef yaml_node_data_s {
+typedef struct yaml_node_data_s {
     /* The node id. */
     int id;
     /* The collection iterator. */

The second problem I am not sure about. Build log is attached.

Michael

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