Pablo Galindo Salgado <pablog...@gmail.com> added the comment:
Hi Anthony, > not sure if this is intentional or not Thanks for the catch! Is not intentional. Could you made a PR adding the line? > Happy to make a patch which adds a line there if someone can help me with the > test We do not have explicit tests for constant folding in the ast level an, in this case, is going to be folded anyway via another code path. For example: def g(): def f(x : 3 in {1,2,3}, /): ... return f print(g.__code__.co_consts[2]) frozenset({1, 2, 3}) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39216> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com