Changes between Initial Version and Version 1 of Ticket #169
- Timestamp:
- 10/11/10 02:01:58 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #169
- Property Status changed from new to closed
- Property Resolution changed from to wontfix
-
Ticket #169 – Description
initial v1 1 The following YAML code is taken directly from an example given in the YAML 1.1 specification and fails to load with PyYAML, giving the error message: "found unacceptable key (unhashable type: 'list')".1 The following YAML code is taken directly from an example given in the YAML 1.1 specification and fails to load with PyYAML, giving the error message: `found unacceptable key (unhashable type: 'list')`. 2 2 3 {{{ 3 4 --- 4 5 ? - Detroit Tigers … … 12 13 2001-08-14 ] 13 14 ... 15 }}} 14 16 15 17 The problem most likely arises because Python lists are not hashable and cannot be used as dict keys. A possible solution may be to detect this special case and coerce YAML !!seq types to Python tuples before constructing the dictionaries that they are a part of.
