Modify ↓
Ticket #81 (closed defect: worksforme)
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:4 Changed 5 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?
Note: See
TracTickets for help on using
tickets.

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