Ticket #183 (closed defect: invalid)
Simple event generated code fails with MemoryError while around 100 bytes yaml is expected as output
| Reported by: | matkor | Owned by: | xi |
|---|---|---|---|
| Priority: | normal | Component: | pyyaml |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Attached code fails with:
Saving to file: 'test.yaml' Traceback (most recent call last):
File "yaml_test.py", line 40, in <module>
dump_dict(dumper, {"intro":"intro_value", "desc": "long description", "multiline": "line 1\nline2\nline3\n", "binary": binarydata })
File "yaml_test.py", line 15, in dump_dict
dumper.emit( events.ScalarEvent?(anchor=None, tag=None, implicit=(True, False), value=v) )
File "_yaml.pyx", line 1231, in _yaml.CEmitter.emit (ext/_yaml.c:14052) File "_yaml.pyx", line 1153, in _yaml.CEmitter._object_to_event (ext/_yaml.c:13123)
Attachments
Change History
comment:1 Changed 2 years ago by xi
- Status changed from new to closed
- Resolution set to invalid
- Summary changed from Simple event generated code fails with MemoryError while around 100 bytes yaml is expected as output to Simple event generated code fails with MemoryError while around 100 bytes yaml is expected as output
The value parameter of ScalarEvent must be a Unicode string (or ASCII).

