Ticket #79 (closed defect: wontfix)
Multiple scalar values used as key creates Python hash error
|Reported by:||clay@…||Owned by:||xi|
|Severity:||normal||Keywords:||load list tuple hash|
The YAML specification suggests that a mapping can have a key made of more than one item, as in
? - Detroit Tigers - Chicago cubs : - 2001-07-23
However, when that data is imported via yaml.load(), PyYAML exits with a yaml.constructor.ConstructorError?, saying "found unacceptable key (list objects are unhashable)"
Is there a way to force multi-value keys to be processed as tuples instead of lists?