[New-bugs-announce] [issue41244] Change to use str.join() instead of += when concatenating string

Wansoo Kim report at bugs.python.org
Wed Jul 8 12:56:39 EDT 2020


New submission from Wansoo Kim <rladhkstn8 at gmail.com>:

https://bugs.python.org/issue41242

According to BPO-41242, it is better to use join than += when concatenating multiple strings.

https://github.com/python/cpython/blob/b26a0db8ea2de3a8a8e4b40e69fc8642c7d7cb68/Lib/asyncio/queues.py#L82

However, the link above uses += in the same pattern. I think we'd better change this to `str.join()`

----------
components: asyncio
messages: 373317
nosy: asvetlov, ys19991, yselivanov
priority: normal
severity: normal
status: open
title: Change to use str.join() instead of += when concatenating string
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41244>
_______________________________________


More information about the New-bugs-announce mailing list