[issue45959] Teach pprint about dict views
Daniel Diniz
report at bugs.python.org
Thu Dec 16 05:00:31 EST 2021
Daniel Diniz <ajaksu at gmail.com> added the comment:
I have tried to add this. The PR adds:
- PrettyPrinter._pprint_dict_view to handle dict_keys and dict_values (sorted with _safe_key).
= PrettyPrinter._pprint_dict_items_view to handle dict_items (sorted using _safe_tuple).
- Tests.
Would a NEWS entry or other form of documentation be necessary?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45959>
_______________________________________
More information about the Python-bugs-list
mailing list