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-121459: Fix a couple of uses of PyStackRef_FromPyObjectSteal #125711

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

mpage
Copy link
Contributor

@mpage mpage commented Oct 18, 2024

gh-124894 disallowed passing NULL pointers to _PyStackRef_FromPyObjectSteal. Refactor the use of _PyStackRef_FromPyObjectSteal in CALL_TUPLE_1 and _CALL_STR_1 to avoid passing NULL pointers.

I ran into this while getting CALL specializations working in the free-threaded build. We aren't running into this currently because _PyStackRef_FromPyObjectSteal only asserts in the free-threaded build and these specializations are disabled in free-threaded builds.

fiona02

This comment was marked as resolved.

@ZeroIntensity
Copy link
Member

Hi @fiona02! AI tools are wonderful, but they're not particularly helpful when it comes to PR reviews--typically, they're just sampling and regurgitating what we've already written before. Please refer to the devguide on how to contribute :)

@mpage mpage merged commit de5a6c7 into python:main Oct 21, 2024
59 checks passed
@mpage mpage deleted the gh-121459-fix-steals branch October 21, 2024 18:08
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.

5 participants