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

gh-111997: Fix argument count for LINE event and clarify type of argument counts.#119179
iritkatriel merged 2 commits into
python:mainfrom
scoder:gh111997_fix_line_event_main

Conversation

@scoder

@scoderscoder 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

Copy link
Copy Markdown
ContributorAuthor

@iritkatriel@markshannon CI passes, ready for review.

@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

Copy link
Copy Markdown

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

@bedevere-appbedevere-appBot 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>
@JelleZijlstraJelleZijlstra mentioned this pull request May 28, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@scoder@iritkatriel