This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iansedano
Recipients Nicolas Hug, docs@python, iansedano, iritkatriel, miss-islington, serhiy.storchaka, xtreak
Date 2021-10-25.08:19:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635149963.59.0.30794679177.issue34798@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-10-25 08:19:23iansedanosetrecipients: + iansedano, docs@python, serhiy.storchaka, miss-islington, xtreak, Nicolas Hug, iritkatriel
2021-10-25 08:19:23iansedanosetmessageid: <1635149963.59.0.30794679177.issue34798@roundup.psfhosted.org>
2021-10-25 08:19:23iansedanolinkissue34798 messages
2021-10-25 08:19:23iansedanocreate