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 vstinner
Recipients Mark.Shannon, brett.cannon, dino.viehland, eric.snow, fabioz, gregory.p.smith, vstinner
Date 2019-11-22.13:12:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574428341.61.0.970680871286.issue38500@roundup.psfhosted.org>
In-reply-to
Content
I wrote PR 17340 to add Add PyInterpreterState_GetEvalFrameFunc() and PyInterpreterState_SetEvalFrameFunc() functions.

Since the PEP 523 has been approved, for me, these functions must be public, not private. My implementation adds these functions to Include/cpython/pystate.h: "non-portable" API specific to CPython (exclude from the limited C API).

PyInterpreterState_GetEvalFrameFunc() is needed if you want to inject a "hook" and not really replaced the whole function. For example, execute code before or after the call. I guess that PyCharm debugger works like that.
History
Date User Action Args
2019-11-22 13:12:21vstinnersetrecipients: + vstinner, brett.cannon, gregory.p.smith, fabioz, dino.viehland, Mark.Shannon, eric.snow
2019-11-22 13:12:21vstinnersetmessageid: <1574428341.61.0.970680871286.issue38500@roundup.psfhosted.org>
2019-11-22 13:12:21vstinnerlinkissue38500 messages
2019-11-22 13:12:21vstinnercreate