Skip to content
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

gh-111997: Fix argument count for LINE event and clarify type of argument counts. #119179

Merged
merged 2 commits into from
May 26, 2024

Conversation

scoder
Copy link
Contributor

@scoder scoder commented May 19, 2024

According to the documentation, the LINE event does not pass the offset but only the line number:

https://docs.python.org/3.13/library/sys.monitoring.html#callback-function-arguments

It's unclear whether the PyMonitoring_FireLineEvent() function should be passed an offset then, but it's probably ok for consistency with the other PyMonitoring_Fire* functions.

@scoder
Copy link
Contributor Author

scoder commented May 25, 2024

@iritkatriel @markshannon CI passes, ready for review.

@iritkatriel iritkatriel enabled auto-merge (squash) May 26, 2024 09:19
@iritkatriel iritkatriel merged commit 70b07aa into python:main May 26, 2024
37 checks passed
@miss-islington-app
Copy link

Thanks @scoder for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 26, 2024
…f argument counts. (pythonGH-119179)

(cherry picked from commit 70b07aa)

Co-authored-by: scoder <stefan_ml@behnel.de>
@bedevere-app
Copy link

bedevere-app bot commented May 26, 2024

GH-119575 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label May 26, 2024
scoder added a commit that referenced this pull request May 26, 2024
…of argument counts. (GH-119179) (GH-119575)

gh-111997: Fix argument count for LINE event and clarify type of argument counts. (GH-119179)
(cherry picked from commit 70b07aa)

Co-authored-by: scoder <stefan_ml@behnel.de>
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants