bpo-32925: Optimized iterating and containing test for literal lists (GH-5842)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 11 Mar 2018 08:54:47 +0000 (10:54 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Mar 2018 08:54:47 +0000 (10:54 +0200)
commit3f7e9aa2ef215917b9f1521441f67f4ecd33a1bc
tree7f4b2918d822c863869ef604332e851eeea5c0a1
parent4e2442505c5e9eec396dcef4d2e6bdd2b6f92fc9
bpo-32925: Optimized iterating and containing test for literal lists (GH-5842)

consisting of non-constants: `x in [a, b]` and `for x in [a, b]`.
The case of all constant elements already was optimized.
Lib/test/test_peepholer.py
Misc/NEWS.d/next/Core and Builtins/2018-02-24-00-07-05.bpo-32925.e-7Ufh.rst [new file with mode: 0644]
Python/ast_opt.c