This is not needed since a long time.
--
Ticket URL: <https://code.djangoproject.com/ticket/31556>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Sergey Fedoseev):
Could you elaborate on its uselessness?
--
Ticket URL: <https://code.djangoproject.com/ticket/31556#comment:1>
* stage: Unreviewed => Accepted
Comment:
The materialization of the list is not required as `str.join` accepts an
`Iterator[str]`.
`', '.join(q.question_text for q in latest_question_list)`
--
Ticket URL: <https://code.djangoproject.com/ticket/31556#comment:2>
* status: new => closed
* resolution: => wontfix
Comment:
This has come up before and was rejected… A list comprehension is
preferable here as `str.join()` converts to list internally anyway. It is
better performance to provide a list up front.
- https://stackoverflow.com/questions/9060653/list-comprehension-without-
in-python/9061024#9061024
- https://github.com/adamchainz/flake8-comprehensions/issues/156
--
Ticket URL: <https://code.djangoproject.com/ticket/31556#comment:3>