Custom Query (121 matches)
Results (76 - 78 of 121)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #68 | wontfix | PyYAML don't load datetime objects dumped with PySyck | xi | miki@… |
| 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 ...
^
|
|||
| #85 | fixed | PyYaml don't have a version | xi | miki@… |
| Description |
There is currently no way I could find to detect the current version of PyYaml? I'm using. There should be a __version__ in the top level yaml module |
|||
| #4 | fixed | Inf and NaN handling needs re-vamp | xi | murphy@… |
| Description |
Try: yaml.load('...')
On Python 2.3.5 (on Windows) it gives: >>> yaml.load('...')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "c:\Python\Lib\site-packages\yaml\__init__.py", line 73, in load
return loader.get_data()
File "c:\Python\Lib\site-packages\yaml\constructor.py", line 40, in get_data
return self.construct_document(self.get_node())
File "c:\Python\Lib\site-packages\yaml\composer.py", line 24, in get_node
return self.compose_document()
File "c:\Python\Lib\site-packages\yaml\composer.py", line 38, in compose_document
self.get_event()
File "c:\Python\Lib\site-packages\yaml\parser.py", line 102, in get_event
self.current_event = self.event_generator.next()
File "c:\Python\Lib\site-packages\yaml\parser.py", line 123, in parse_stream
StreamEndToken):
File "c:\Python\Lib\site-packages\yaml\scanner.py", line 116, in check_token
self.fetch_more_tokens()
File "c:\Python\Lib\site-packages\yaml\scanner.py", line 191, in fetch_more_tokens
if ch == u'.' and self.check_document_end():
File "c:\Python\Lib\site-packages\yaml\scanner.py", line 704, in check_document_end
prefix = self.peek(4)
File "c:\Python\Lib\site-packages\yaml\reader.py", line 125, in peek
return self.buffer[self.pointer+index]
IndexError: string index out of range
|
|||
Note: See TracQuery
for help on using queries.
