[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:34:35 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 the test suite of black) on a relatively ~big dataset of python source code.

----------

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


More information about the Python-bugs-list mailing list