[New-bugs-announce] [issue38847] AST Optimization for Single Target List Comprehension

Batuhan report at bugs.python.org
Tue Nov 19 07:14:19 EST 2019


New submission from Batuhan <batuhanosmantaskaya at gmail.com>:

I was going through old issues and I found @inada.naoki's comment on issue 36551

> How about converting `[x for x in it]` to `[*it]` in AST?

Is this feature still wanted? I can try to work on an implementation for this if there is a need. Also should this cover set (`{x for x in it}`) comprehensions?

----------
messages: 356965
nosy: BTaskaya, inada.naoki
priority: normal
severity: normal
status: open
title: AST Optimization for Single Target List Comprehension

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


More information about the New-bugs-announce mailing list