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 serhiy.storchaka
Recipients gregory.p.smith, gvanrossum, lys.nikolaou, pablogsal, rhettinger, serhiy.storchaka, slebedev
Date 2021-12-24.08:44:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640335462.67.0.627577206569.issue46167@roundup.psfhosted.org>
In-reply-to
Content
For very long expression or very long message you can add parentheses around the expression or message. Black will format it as:

assert (
    very very long
    expression
), (
    "very very long "
    "message"
)

With the proposed feature it will be:

assert (
    very very long
    expression,
    "very very long "
    "message",
)

It saves one line, but the border between an expression and a message is blur. Since they are separated by a comma at the end of line and all lines have the same indentation it looks less readable to me.

Note also that Black adds a comma after message.
History
Date User Action Args
2021-12-24 08:44:22serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, rhettinger, gregory.p.smith, lys.nikolaou, pablogsal, slebedev
2021-12-24 08:44:22serhiy.storchakasetmessageid: <1640335462.67.0.627577206569.issue46167@roundup.psfhosted.org>
2021-12-24 08:44:22serhiy.storchakalinkissue46167 messages
2021-12-24 08:44:22serhiy.storchakacreate