Issue #15 new

!!set dump should be nicer

Anonymous created an issue

Dumping a !!set is ugly:

>>> print yaml.dump(set([1, 2, 3]))
!!set {1: null, 2: null, 3: null}

Instead of:

>>> print yaml.dump(set([1, 2, 3]))
!!set {1, 2, 3}

Or:

>>> print yaml.dump(set([1, 2, 3]), default_flow_style=False)
!!set
1: null
2: null
3: null

Instead of:

>>> print yaml.dump(set([1, 2, 3]), default_flow_style=False)
!!set
? 1
? 2
? 3

Comments (0)

  1. Log in to comment