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.

classification
Title: code_context not available in exec()
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Grzegorz Krasoń, iritkatriel, xtreak, yselivanov
Priority: normal Keywords:

Created on 2015-12-25 16:14 by Grzegorz Krasoń, last changed 2022-04-11 14:58 by admin.

Files
File name Uploaded Description Edit
issue.py Grzegorz Krasoń, 2015-12-25 16:14 demonstration
Messages (2)
msg256998 - (view) Author: Grzegorz Krasoń (Grzegorz Krasoń) Date: 2015-12-25 16:14
inspect.stack()[n].code_context() is empty when context is created by exec()
msg407501 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-12-01 22:46
Reproduced on 3.11.
History
Date User Action Args
2022-04-11 14:58:25adminsetgithub: 70140
2021-12-01 22:46:38iritkatrielsetnosy: + iritkatriel

messages: + msg407501
versions: + Python 3.11, - Python 3.5, Python 3.6
2018-09-22 07:30:34xtreaksetnosy: + xtreak
2015-12-25 16:17:01SilentGhostsetnosy: + yselivanov

components: + Library (Lib)
versions: + Python 3.6
2015-12-25 16:14:47Grzegorz Krasońcreate