summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-03-11 08:54:47 (GMT)
committerGitHub <noreply@github.com>2018-03-11 08:54:47 (GMT)
commit3f7e9aa2ef215917b9f1521441f67f4ecd33a1bc (patch)
tree7f4b2918d822c863869ef604332e851eeea5c0a1 /Misc
parent4e2442505c5e9eec396dcef4d2e6bdd2b6f92fc9 (diff)
downloadcpython-3f7e9aa2ef215917b9f1521441f67f4ecd33a1bc.zip
cpython-3f7e9aa2ef215917b9f1521441f67f4ecd33a1bc.tar.gz
cpython-3f7e9aa2ef215917b9f1521441f67f4ecd33a1bc.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2018-02-24-00-07-05.bpo-32925.e-7Ufh.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-02-24-00-07-05.bpo-32925.e-7Ufh.rst b/Misc/NEWS.d/next/Core and Builtins/2018-02-24-00-07-05.bpo-32925.e-7Ufh.rst
new file mode 100644
index 0000000..e9443e6
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2018-02-24-00-07-05.bpo-32925.e-7Ufh.rst
@@ -0,0 +1,3 @@
+Optimized iterating and containing test for literal lists consisting of
+non-constants: ``x in [a, b]`` and ``for x in [a, b]``. The case of all
+constant elements already was optimized.