Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46167>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to