Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-92203: Add closure support to exec(). #92204

Merged
merged 8 commits into from
May 6, 2022
Merged
Prev Previous commit
Next Next commit
Add blurb.
  • Loading branch information
larryhastings committed May 2, 2022
commit 8db39e88acef03080c8670be0f82785441b4d2d2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Add a closure keyword-only parameter to exec(). It can only be specified
when exec-ing a code object that uses free variables. When specified, it
must be a tuple, with exactly the number of cell variables referenced by the
code object. closure has a default value of None, and it must be None if the
code object doesn't refer to any free variables.