Message404952
I came across this and was confused by it too. I also don't understand the justification with not having dicts to be affected by the `compact` parameter.
If the "compact form" is having separate entries or elements on one line, instead of having each element separated by a new line, then it seems like inconsistent behavior.
**If a dict is short enough, it will appear in "compact form", just like a list.**
If a dict is too long for the width, then each item will appear in "expanded form", also like a list.
However, the actual compact parameter only affects sequence items. Why is this?
There is no reason given in #19132. It does mention a review, but it doesn't seem to be available, or I don't know how to get to it, to understand the reason for that decision. |
|
Date |
User |
Action |
Args |
2021-10-25 08:19:23 | iansedano | set | recipients:
+ iansedano, docs@python, serhiy.storchaka, miss-islington, xtreak, Nicolas Hug, iritkatriel |
2021-10-25 08:19:23 | iansedano | set | messageid: <1635149963.59.0.30794679177.issue34798@roundup.psfhosted.org> |
2021-10-25 08:19:23 | iansedano | link | issue34798 messages |
2021-10-25 08:19:23 | iansedano | create | |
|