[issue46153] closure fails in exec when locals is given

2021-12-22 Thread Quentin Peter
Quentin Peter added the comment: This might be related to https://bugs.python.org/issue41918 -- ___ Python tracker ___ ___

[issue46153] closure fails in exec when locals is given

2021-12-22 Thread Quentin Peter
New submission from Quentin Peter : When both namespace arguments are given to exec, function definitions fail to capture closure. See below: ``` Python 3.8.6 (default, Oct 8 2020, 14:06:32) [Clang 12.0.0 (clang-1200.0.32.2)] on darwin Type "help", "copyright", "credits" or "license" for