Message357277
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. |
|
Date |
User |
Action |
Args |
2019-11-22 13:12:21 | vstinner | set | recipients:
+ vstinner, brett.cannon, gregory.p.smith, fabioz, dino.viehland, Mark.Shannon, eric.snow |
2019-11-22 13:12:21 | vstinner | set | messageid: <1574428341.61.0.970680871286.issue38500@roundup.psfhosted.org> |
2019-11-22 13:12:21 | vstinner | link | issue38500 messages |
2019-11-22 13:12:21 | vstinner | create | |
|