commit | 50210643902d28405a57a9672347f43215dbdb3b | [log] [tgz] |
---|---|---|
author | larryhastings <larry@hastings.org> | Fri May 06 10:09:35 2022 -0700 |
committer | GitHub <noreply@github.com> | Fri May 06 10:09:35 2022 -0700 |
tree | 736c0a00668e4781b5db125c557f094b65302f8b | |
parent | 973a5203c151efb7a86a478140f7b0c9ae70438f [diff] |
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.