Ticket #76 (assigned defect)

Opened 6 years ago

Last modified 21 months ago

Sets are dumped with null values

Reported by: anonymous Owned by: xi
Priority: normal Component: pyyaml
Severity: normal Keywords:

Description (last modified by xi) (diff)

Dumping sets looks kind of ugly. You get:

'!!set {1: null, 2: null, 3: null}'

instead of

'!!set {1, 2, 3}'

This looks even worse when each element in the set is a bit more complicated.


Change History

comment:1 Changed 6 years ago by xi

  • Status changed from new to assigned
  • Description modified (diff)

Your complaint is justified, but it's not that easy to fix. Still, I'm accepting the ticket.

comment:2 Changed 3 years ago by anonymous

Also, block-mode !!set should look like

? Mark McGwire
? Sammy Sosa
? Ken Griff

and not like

Mark McGwire: null
Sammy Sosa: null
Ken Griff: null

comment:3 Changed 3 years ago by anonymous

I think, decision is to never write ': null'

I have checked, {?1, 3: 4} is valid YAML

comment:4 Changed 21 months ago by anonymous

Anyone working on this problem?


Add a comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.