Ignore:
Timestamp:
05/23/06 15:11:21 (8 years ago)
Author:
xi
Message:

Fixed #16 (duplicate keys in dictionary cause unpredictable behavior).
Thanks to nickesk(at)cs.bu.edu for the report.

If a mapping node contains duplicate keys, it is transformed to a list of pairs.
This behaviour may change in the future since it contradicts the YAML specification.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pysyck/trunk/lib/syck/loaders.py

    r49 r176  
    8080                    value_object = self._convert(node.value[key_node], 
    8181                            node_to_object) 
    82                 value.append((key_object, value_object)) 
     82                    value.append((key_object, value_object)) 
    8383        node.value = value 
    8484        object = self.construct(node) 
Note: See TracChangeset for help on using the changeset viewer.