Ticket #81 (closed defect: worksforme)

Opened 5 months ago

Last modified 3 months ago

syck.dump is broken

Reported by: anonymous Assigned to: 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

05/31/08 01:47:56 changed by xi

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

06/14/08 05:22:58 changed by anonymous

The version is 0.61.2.

06/14/08 05:24:44 changed by anonymous

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

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

07/29/08 17:10:58 changed 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?


Add/Change #81 (syck.dump is broken)




Change Properties
Action