Skip to content

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

Merged
iritkatriel merged 2 commits into
python:mainfrom
scoder:gh111997_fix_line_event_main
May 26, 2024
Merged

iritkatriel merged 2 commits into
python:mainfrom
scoder:gh111997_fix_line_event_main

Conversation

@scoder

@scoder scoder commented May 19, 2024 •

Copy link
Copy Markdown
Contributor

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

scoder commented May 25, 2024

Copy link
Copy Markdown
Contributor Author

@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
@miss-islington-app

Copy link
Copy Markdown

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

bedevere-app Bot commented May 26, 2024

Copy link
Copy Markdown

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 only 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

2 participants