Custom Query (121 matches)

Filters
 
Or
 
  
 
Columns

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@…, 7 years ago.

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

Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
    lib.yaml.load(syck.dump(a))
  File "yaml/__init__.py", line 66, in load
  File "yaml/constructor.py", line 38, in get_data
  File "yaml/constructor.py", line 46, in construct_document
  File "yaml/constructor.py", line 394, in construct_yaml_map
  File "yaml/constructor.py", line 207, in construct_mapping
  File "yaml/constructor.py", line 132, in construct_mapping
  File "yaml/constructor.py", line 87, in construct_object
  File "yaml/constructor.py", 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@…, 4 years ago.

Description

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@…, 8 years ago.

Description

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.