diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-09-21 20:39:48 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-09-21 20:39:48 +0200 |
commit | 76b0f89d8fcbf88616f62c01551731cc043f86a3 (patch) | |
tree | 249e6d08fa6f8be2d18cba96640244fb47a69a4e /README.rst | |
parent | 7303884f29383c9c0f71547a6e3d41997aac5cb1 (diff) | |
download | ruamel.yaml-76b0f89d8fcbf88616f62c01551731cc043f86a3.tar.gz |
fix #233 fix #231 reverting to subclass dict resp list for CommentedMap/Seq0.15.70
had to reimplement round-trippable mappings with merge-keys to get both JSON dumping and
casting using dict(**some_commented_map) to work.
(JSON dump of merge maps not tested)
*When this change indeed resolves your problem, please **Close** this issue*.
*(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -4,8 +4,8 @@ ruamel.yaml ``ruamel.yaml`` is a YAML 1.2 loader/dumper package for Python. -:version: 0.15.69 -:updated: 2018-09-20 +:version: 0.15.70 +:updated: 2018-09-21 :documentation: http://yaml.readthedocs.io :repository: https://bitbucket.org/ruamel/ :pypi: https://pypi.org/project/ruamel.yaml/ @@ -54,6 +54,14 @@ ChangeLog .. should insert NEXT: at the beginning of line for next key (with empty line) +0.15.70 (2018-09-21): + - reverted CommentedMap and CommentedSeq to subclass ordereddict resp. list, + reimplemented merge maps so that both ``dict(**commented_map_instance)`` and JSON + dumping works. This also allows checking with ``isinstance()`` on ``dict`` resp. ``list``. + (Proposed by `Stuart Berg <https://bitbucket.org/stuarteberg/>`__, with feedback + from `blhsing <https://stackoverflow.com/users/6890912/blhsing>`__ on + `StackOverflow <https://stackoverflow.com/q/52314186/1307905>`__) + 0.15.69 (2018-09-20): - fix issue with dump_all gobbling end-of-document comments on parsing (reported by `Pierre B. <https://bitbucket.org/octplane/>`__) |