Skip to content

Commit

Permalink
update NEWS and What's New
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed May 16, 2023
1 parent 9d452fb commit 2c47a75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,10 @@ New Features
PEP 709: Comprehension inlining
-------------------------------

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

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

0 comments on commit 2c47a75

Please sign in to comment.