Message357277
| 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. |
|