You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I've been working on this for a little while, but I'm a bit lost on implementing the changes.
From what I understand think I'm supposed to create a public API to set the f_fileno variable so I used PyAPI_FUNC(int) PyFrame_SetLineNumber(PyFrameObject *f, int lineno) in Include/cpython/frameobject.h which uses frame_setlineno from frameobject.c to change the f_lineno. I've been trying to get a test to pass to verify that this works in Lib/test/test_frame.py but I'm not sure if my approach or logic is correct.
Feature or enhancement
Proposal:
CPython hides PyFrameObject internals so Cython include
pycore_frame.h
to setf_lineno
.Let's provide PyFrame_SetLineNumber() for Cython.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
#117551 (comment)
The text was updated successfully, but these errors were encountered: