Modify

Ticket #183 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

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)

MemoryError?

Attachments

yaml_test.py Download (1.6 KB) - added by matkor 3 years ago.

Change History

Changed 3 years ago by matkor

comment:1 Changed 3 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).

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.