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-103323: Remove current_fast_get() unused parameter #114593

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jan 26, 2024

The current_fast_get() static inline function doesn't use its 'runtime' parameter, so just remove it.

The current_fast_get() static inline function doesn't use its
'runtime' parameter, so just remove it.
@vstinner
Copy link
Member Author

@ericsnowcurrently @colesbury @corona10: Would you mind to review this change?

The change commit f8abfa3 modified current_fast_get(). Before the Python Thread State was retrieved from runtime, but it's no longer the case.

Copy link
Member

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

IIRC, the main reason I left the parameter was to reduce churn. After that I didn't see any harm in leaving the parameter. That said, I'm not opposed to dropping it.

Copy link
Contributor

@colesbury colesbury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks more straightforward to me too

Copy link
Member

@corona10 corona10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@vstinner vstinner merged commit 58f883b into python:main Jan 30, 2024
34 checks passed
@vstinner vstinner deleted the current_fast_get branch January 30, 2024 10:48
@vstinner
Copy link
Member Author

Merged, thanks for reviews.

aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…14593)

The current_fast_get() static inline function doesn't use its
'runtime' parameter, so just remove it.
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.

4 participants