Ticket #16 (reopened defect)
duplicate keys in dictionary cause unpredictable behavior
| Reported by: | nickesk@… | Owned by: | xi |
|---|---|---|---|
| Priority: | normal | Component: | pysyck |
| Severity: | major | Keywords: | |
| Cc: |
Description (last modified by xi) (diff)
When there are duplicate keys in the same dictionary, PySyck returns unpredictable results, including the wrong data type.
I'm not sure if this is a defect in PySyck, or the underlying syck library. However, older versions of PySyck (<0.55) didn't suffer from this and merely overwrote the duplicate key with the new information.
>>> syck.load('foo: bar\nfoo2: bar') {'foo': 'bar', 'foo2': 'bar'} >>> syck.load('foo: bar\nfoo2: bar\nfoo: bar') [('foo', 'bar')]
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
