Modify

Ticket #134 (closed defect: invalid)

Opened 5 years ago

Last modified 2 days ago

Nested lists seems to be "dumped" incorrectly

Reported by: maksims.juvcenko@… Owned by: xi
Priority: high Component: pyyaml
Severity: major Keywords: List; dump
Cc:

Description

Problem occurs, when nested list is dumped.

>>> s = {"a": ['aaa','bbb','ccc']}
>>> print yaml.dump(s, default_flow_style=False)
a:
- aaa
- bbb
- ccc

According to specification of YAML 1.1 nested sequence items must have entry token equal to " -" (two spaces and minus symbol), but in reality it lacks entry spaces. This issue creates limitations, when YAML documents are passed between PyYAML and JYaml interpreters.

Configuration:

  • PyYAML version: PyYAML 3.08
  • Python version: 2.5.2

Attachments

Change History

comment:1 Changed 5 years ago by xi

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

PyYAML output is correct, see, for instance, Examples 10.3 and 10.4 in the specification:  http://yaml.org/spec/1.1/#id931893.

comment:2 Changed 5 years ago by py4fun@…

use SnakeYAML (instead of JYaml) for Java

comment:3 Changed 2 days ago by simas <kerdos@…>

 Cipto Junaedy is a customer research expert. "There are plenty of safe, effective HCA nutritional supplement out there. Finding one with  Unit Link Terbaik di Indonesia Commonwealth Life Investra Link 60% HCA with no food additives is vital."

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.