mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-39946: Remove _PyThreadState_GetFrame (GH-19094)
Remove _PyRuntime.getframe hook and remove _PyThreadState_GetFrame macro which was an alias to _PyRuntime.getframe. They were only exposed by the internal C API. Remove also PyThreadFrameGetter type.
This commit is contained in:
parent
fd1e1a18fa
commit
6723e933c4
7 changed files with 14 additions and 34 deletions
|
@ -801,7 +801,7 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header)
|
|||
PUTS(fd, "Stack (most recent call first):\n");
|
||||
}
|
||||
|
||||
frame = _PyThreadState_GetFrame(tstate);
|
||||
frame = tstate->frame;
|
||||
if (frame == NULL) {
|
||||
PUTS(fd, "<no Python frame>\n");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue