-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PyFrame_SetLineNumber() for Cython #118720
Comments
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 This is what I have so far: Ben4C@1e82093 |
Add tests on PyFrame_GetLineNumber() and PyFrame_SetLineNumber().
Add tests on PyFrame_GetLineNumber() and PyFrame_SetLineNumber().
Add tests on PyFrame_GetLineNumber() and PyFrame_SetLineNumber().
This function was also discussed at #130931. |
I wrote PR gh-131246 to add |
I think is going to be very confusing if The |
Yes - it's used directly after creating a frame for that purpose. (It's also used in the old, pre-sys-monitoring code. I would not worry about replacing that usage because I think that's only on older Python versions) |
So what are the proposed semantics of |
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)
Linked PRs
The text was updated successfully, but these errors were encountered: