Custom Query (121 matches)


Show under each result:

Results (43 - 45 of 121)

Ticket Resolution Summary Owner Reporter
#68 wontfix PyYAML don't load datetime objects dumped with PySyck xi miki@…

Reported by miki@…, 10 years ago.

>>> from datetime import datetime
>>> now =
>>> import syck
>>> a = {"t": now}
>>> yaml.load(syck.dump(a))

Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
  File "yaml/", line 66, in load
  File "yaml/", line 38, in get_data
  File "yaml/", line 46, in construct_document
  File "yaml/", line 394, in construct_yaml_map
  File "yaml/", line 207, in construct_mapping
  File "yaml/", line 132, in construct_mapping
  File "yaml/", line 87, in construct_object
  File "yaml/", line 410, in construct_undefined
ConstructorError: could not determine a constructor for the tag '!timestamp'
  in "<string>", line 2, column 4:
    t: !timestamp 2007-10-19T14:08:44.5 ... 
#169 wontfix PyYAML fails to load mapping keys of sequence type xi sedie@…

Reported by sedie@…, 7 years ago.


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').

? - Detroit Tigers
  - Chicago cubs
  - 2001-07-23

? [ New York Yankees,
    Atlanta Braves ]
: [ 2001-07-02, 2001-08-12,
    2001-08-14 ]

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.

#31 fixed PyYAML for Python 2.5 xi edemaine@…

Reported by edemaine@…, 11 years ago.


Could you compile a Windows binary of PyYAML for Python 2.5 (released fairly recently)? Ideally with libyaml support built in...

Note: See TracQuery for help on using queries.