[issue42754] Unpacking of literals inside other literals should be optimised away by the compiler

Batuhan Taskaya report at bugs.python.org
Mon Dec 28 13:33:29 EST 2020


Batuhan Taskaya <isidentical at gmail.com> added the comment:

We could possibly fold this at the AST optimizer, though I am not sure whether this worths anything as an optimization since it is a real obscure pattern. I've only found 2 occurrences (both from a test set on a relatively ~big dataset of source code.

----------
nosy: +Mark.Shannon, pablogsal, serhiy.storchaka

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


More information about the Python-bugs-list mailing list