Modify

Ticket #81 (closed defect: worksforme)

Opened 6 years ago

Last modified 6 years ago

syck.dump is broken

Reported by: anonymous Owned by: xi
Priority: normal Component: pysyck
Severity: major Keywords:
Cc:

Description

syck.dump fails on even simple mappings:

>>> import syck
>>> doc = '''
... a: 1
... b: 2
... c: 3
... '''
>>> syck.load(doc)
{'a': 1, 'c': 3, 'b': 2}
>>> syck.dump(syck.load(doc))
'--- {}\n\n'
>>>

This is PySyck 0.61.2.

$ python --version
Python 2.5.2
$ uname -a
Linux brainsplit 2.6.24 #2 SMP Thu May 1 13:57:17 UTC 2008 x86_64 GNU/Linux
$ 

Cheers.

Attachments

Change History

comment:1 Changed 6 years ago by xi

Works for me. What's the version of libsyck?

comment:2 Changed 6 years ago by anonymous

The version is 0.61.2.

comment:3 Changed 6 years ago by anonymous

PS: It's the version provided in Ubuntu Hardy Heron:

 http://packages.ubuntu.com/python-pysyck

comment:4 Changed 6 years ago by xi

  • Status changed from new to closed
  • Resolution set to worksforme

Works for me in Ubuntu Hardy:

Python 2.5.2 (r252:60911, May  7 2008, 15:19:09) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import syck
>>> syck.__file__
'/var/lib/python-support/python2.5/syck/__init__.pyc'
>>> doc = '''
... a: 1
... b: 2
... c: 3
... '''
>>> syck.load(doc)
{'a': 1, 'c': 3, 'b': 2}
>>> syck.dump(syck.load(doc))
'--- \nb: 2\nc: 3\na: 1\n' 

Are you running a 32-bit or 64-bit system? Perhaps it's a 64-bit issue?

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.