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-120200: Fix inspect.iscoroutinefunction(inspect) is True corner case #120214

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jun 7, 2024

CC @carltongibson as the original author
CC @gvanrossum and @kumaraditya303 as original reviewers

I think that the name change is the somplest fix here. Since this name is protected and undocumented, this should not be a breaking change.

However, what do we care about more? Supporting this corner-case or keeping the old name?
If the former, then I can close this PR.

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

Good find, good fix!

@sobolevn sobolevn merged commit 10fb1b8 into python:main Jun 7, 2024
35 checks passed
@sobolevn sobolevn added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Jun 7, 2024
@miss-islington-app
Copy link

Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app
Copy link

Sorry, @sobolevn, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 10fb1b8f36ab2fc3d2fe7392d5735dd19c5e2365 3.12

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…orner case (pythonGH-120214)

(cherry picked from commit 10fb1b8)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@bedevere-app
Copy link

bedevere-app bot commented Jun 7, 2024

GH-120237 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 Jun 7, 2024
sobolevn added a commit to sobolevn/cpython that referenced this pull request Jun 7, 2024
…True` corner case (pythonGH-120214)

(cherry picked from commit 10fb1b8)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@sobolevn
Copy link
Member Author

sobolevn commented Jun 7, 2024

Are we fine with 3.12 and 3.13 backports? I just created them, but haven't merged anything yet.

@bedevere-app
Copy link

bedevere-app bot commented Jun 7, 2024

GH-120239 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Jun 7, 2024
@gvanrossum
Copy link
Member

Are we fine with 3.12 and 3.13 backports? I just created them, but haven't merged anything yet.

Yes totally fine. This is just a bug.

sobolevn added a commit that referenced this pull request Jun 7, 2024
…corner case (GH-120214) (#120237)

gh-120200: Fix `inspect.iscoroutinefunction(inspect) is True` corner case (GH-120214)
(cherry picked from commit 10fb1b8)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
sobolevn added a commit that referenced this pull request Jun 7, 2024
…corner case (GH-120214) (#120239)

* [3.12] gh-120200: Fix `inspect.iscoroutinefunction(inspect) is True` corner case (GH-120214)
(cherry picked from commit 10fb1b8)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
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.

None yet

2 participants