C API "Initialization" docs suggest to use PyFrameObject
fields that are no longer public
#111774
Labels
docs
Documentation in the Doc dir
Since #90992
PyFrameObject
is an opaque structure, butProfiling and Tracing
section ofInitialization, Finalization and Threads
part of C API docs suggests to use its private fields to change tracing behavior:cpython/Doc/c-api/init.rst
Lines 1661 to 1665 in ba8aa1f
cpython/Doc/c-api/init.rst
Lines 1692 to 1697 in ba8aa1f
I guess it should instead mention
PyObject_SetAttrString(frame, "f_trace_lines", Py_False)
andPyObject_SetAttrString(frame, "f_trace_opcodes", Py_True)
calls as a way to set values of needed fields.Linked PRs
PyObject_SetAttrString
to set frame object fields #111776The text was updated successfully, but these errors were encountered: