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. |