diff options
author | larryhastings <larry@hastings.org> | 2022-05-06 10:09:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 10:09:35 -0700 |
commit | 50210643902d28405a57a9672347f43215dbdb3b (patch) | |
tree | 736c0a00668e4781b5db125c557f094b65302f8b /Python/sysmodule.c | |
parent | 973a5203c151efb7a86a478140f7b0c9ae70438f (diff) | |
download | cpython-git-50210643902d28405a57a9672347f43215dbdb3b.tar.gz |
gh-92203: Add closure support to exec(). (#92204)
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.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions