Modify

Ticket #229 (new defect)

Opened 2 years ago

Last modified 2 years ago

[PATCH] pysyck cannot dump dict in 64bit system

Reported by: Kuang-che Wu <kcwu@…> Owned by: xi
Priority: normal Component: pysyck
Severity: normal Keywords:
Cc:

Description

python -c 'import syck; syck.dump({1:2})

Traceback (most recent call last):

File "<string>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/syck/dumpers.py", line 295, in dump

dumper.dump(object)

File "/usr/local/lib/python2.7/site-packages/syck/dumpers.py", line 23, in dump

self.emit(self._convert(object, {}))

RuntimeError?: mapping item is not marked

This is because int PyDict_Next(PyObject? *p, Py_ssize_t *ppos, PyObject? pkey, PyObject? pvalue) Py_ssize_t is 64bit on my system (python 2.7, freebsd 64bit) but you use int dict_pos; where "int" is 32bit.

Attachments

diff-pysyck-64bit.patch Download (496 bytes) - added by Kuang-che Wu <kcwu@…> 2 years ago.

Change History

Changed 2 years ago by Kuang-che Wu <kcwu@…>

comment:1 Changed 2 years ago by Kuang-che Wu <kcwu@…>

There is a patch attached in #67 which fix one more line.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from xi. Next status will be 'new'
The owner will be changed from xi to anonymous. Next status will be 'assigned'
Author


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

 
Note: See TracTickets for help on using tickets.