[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Pablo. Thank you for the suggestion though. -- nosy: +rhettinger resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: IMHO, I think is such a specific use case that is not worth the maintenance cost. Especially because of such list comprehension is very uncommon as you can simply do `list(it)` which more readable and anecdotally faster. -- nosy: +pablogsal

[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Batuhan
Change by Batuhan : -- components: +Interpreter Core versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Batuhan
New submission from Batuhan : 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

[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Batuhan
Change by Batuhan : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: