This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author qpeter
Recipients qpeter, steven.daprano
Date 2021-12-22.17:49:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640195390.47.0.508223546064.issue46153@roundup.psfhosted.org>
In-reply-to
Content
Thank you for your explaination. Just to be sure, it is expected that:

exec("a = 1\ndef f(): return a\nprint(f())", {})

Runs successfully but

exec("a = 1\ndef f(): return a\nprint(f())", {}, {})

Doesn't?
History
Date User Action Args
2021-12-22 17:49:50qpetersetrecipients: + qpeter, steven.daprano
2021-12-22 17:49:50qpetersetmessageid: <1640195390.47.0.508223546064.issue46153@roundup.psfhosted.org>
2021-12-22 17:49:50qpeterlinkissue46153 messages
2021-12-22 17:49:50qpetercreate