classification
Title: Deprecate string concatenation without plus
Type: enhancement Stage: resolved
Components: Interpreter Core Versions: Python 3.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: Aivar.Annamaa, serhiy.storchaka
Priority: normal Keywords:

Created on 2017-01-24 08:32 by Aivar.Annamaa, last changed 2017-01-24 08:48 by serhiy.storchaka. This issue is now closed.

Messages (3)
msg286152 - (view) Author: Aivar Annamaa (Aivar.Annamaa) * Date: 2017-01-24 08:32
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.
msg286155 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-01-24 08:45
See PEP 3126.
msg286156 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-01-24 08:48
See also the topic "Implicit string literal concatenation considered harmful?" on Python-Ideas:
https://mail.python.org/pipermail/python-ideas/2013-May/020527.html

If you want to revive this issue, it is better to do this on the Python-Ideas mailing list.
History
Date User Action Args
2019-02-28 21:37:53r.david.murrayunlinkissue36148 superseder
2019-02-28 21:36:34r.david.murraylinkissue36148 superseder
2017-01-24 08:48:29serhiy.storchakasetstatus: open -> closed
resolution: rejected
messages: + msg286156

stage: resolved
2017-01-24 08:45:58serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg286155
2017-01-24 08:37:57Aivar.Annamaasetcomponents: + Interpreter Core
2017-01-24 08:32:59Aivar.Annamaacreate