◐ Shell
clean mode source ↗

gh-103323: Remove current_fast_get() unused parameter by vstinner · Pull Request #114593 · python/cpython

@vstinner

@vstinner vstinner commented

Jan 26, 2024

edited by bedevere-app Bot

Loading

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

@vstinner

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

ericsnowcurrently

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.

colesbury

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

corona10

Choose a reason for hiding this comment

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

lgtm

@vstinner

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.