Skip to content

Commit 2c47a75

Browse files
committed
update NEWS and What's New
1 parent 9d452fb commit 2c47a75

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Doc/whatsnew/3.12.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,10 @@ New Features
158158
PEP 709: Comprehension inlining
159159
-------------------------------
160160

161-
Dictionary, list, and set comprehensions are now inlined, rather than creating a
162-
new single-use function object for each execution of the comprehension. This
163-
speeds up execution of a comprehension by up to 2x.
161+
Dictionary, list, and set comprehensions occurring inside functions are now
162+
inlined, rather than creating a new single-use function object for each
163+
execution of the comprehension. This speeds up execution of a comprehension by
164+
up to 2x.
164165

165166
Comprehension iteration variables remain isolated; they don't overwrite a
166167
variable of the same name in the outer scope, nor are they visible after the
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
:pep:`709`: inline list, dict and set comprehensions to improve performance
2-
and reduce bytecode size.
1+
:pep:`709`: inline list, dict and set comprehensions in functions to improve
2+
performance and reduce bytecode size.

0 commit comments

Comments
 (0)