[New-bugs-announce] [issue29359] Deprecate string concatenation without plus

Aivar Annamaa report at bugs.python.org
Tue Jan 24 03:32:59 EST 2017


New submission from Aivar Annamaa:

How quickly will you notice the bug here:

for sequence in ["Command",
                 "MagicCommand",
                 "Open",
                 "Save",
                 "SaveAs",
                 "NewFile",
                 "EditorTextCreated"
                 "ShellCommand",
                 "ShellInput",
                 "ShowView",
                 "HideView",
                 "TextInsert",
                 "TextDelete",
                 ]:
    do_something(sequence)

? 

Given the title of the issue, its probably not so hard, but usually a list literal is not the first thing to suspect.

Similar problem of missing comma may occur easily with multiline calls.

If concatenation without plus was deprecated, these mistakes would be so easy to notice.

----------
messages: 286152
nosy: Aivar.Annamaa
priority: normal
severity: normal
status: open
title: Deprecate string concatenation without plus
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29359>
_______________________________________


More information about the New-bugs-announce mailing list