Ticket #76 (assigned defect)

Opened 4 years ago

Last modified 9 months ago

Sets are dumped with null values

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

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.

Attachments

Change History

Changed 4 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.

Changed 9 months ago by anonymous

Also, block-mode !!set should look like

!!set
? Mark McGwire
? Sammy Sosa
? Ken Griff

and not like

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

Changed 9 months ago by anonymous

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

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

Add/Change #76 (Sets are dumped with null values)

Author


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


Change Properties
<Author field>
Action
as assigned
as The resolution will be set. Next status will be 'closed'
to The owner will change from xi. Next status will be 'new'
 
Note: See TracTickets for help on using tickets.