mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
GH-96803: Add three C-API functions to make _PyInterpreterFrame less opaque for users of PEP 523. (GH-96849)
This commit is contained in:
parent
45a9e3834a
commit
a0df9ee8fc
9 changed files with 48 additions and 8 deletions
|
@ -1180,7 +1180,7 @@ dump_frame(int fd, _PyInterpreterFrame *frame)
|
|||
PUTS(fd, "???");
|
||||
}
|
||||
|
||||
int lineno = _PyInterpreterFrame_GetLine(frame);
|
||||
int lineno = PyUnstable_InterpreterFrame_GetLine(frame);
|
||||
PUTS(fd, ", line ");
|
||||
if (lineno >= 0) {
|
||||
_Py_DumpDecimal(fd, (size_t)lineno);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue