Closed vitorsrg closed 2 years ago
Currently, dumping with sort_sets=True will fail when values are keywords or complex structures:
sort_sets=True
import edn_format obj = edn_format.loads( r"""#{:a :b :c #{:a :b}}""") print( edn_format.dumps( obj, sort_sets=True))
Keyword
__cmp__
Hi @swaroopch
Do you have any suggestions or should I just close the PR?
Context
Currently, dumping with
sort_sets=True
will fail when values are keywords or complex structures:Solution
Keyword
. I added both__cmp__
and the other ones so it is compatible with python 2 and 3.