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-117139: Replace _PyList_FromArraySteal with stack ref variant #122830

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

colesbury
Copy link
Contributor

@colesbury colesbury commented Aug 8, 2024

This replaces _PyList_FromArraySteal with _PyList_FromStackRefSteal. It's functionally equivalent, but takes a _PyStackRef array instead of an array of PyObject pointers.

This replaces `_PyList_FromArraySteal` with `_PyList_FromStackRefSteal`.
It's functionally equivalent, but takes a `_PyStackRef` array instead of
an array of `PyObject` pointers.

Co-authored-by: Ken Jin <kenjin@python.org>
@colesbury
Copy link
Contributor Author

@colesbury colesbury marked this pull request as ready for review August 8, 2024 17:48
Copy link
Contributor

@DinoV DinoV left a comment

Choose a reason for hiding this comment

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

LGTM!

@colesbury colesbury merged commit ab094d1 into python:main Aug 12, 2024
66 of 68 checks passed
@colesbury colesbury deleted the gh-117139-list-steal branch August 12, 2024 18:49
blhsing pushed a commit to blhsing/cpython that referenced this pull request Aug 22, 2024
python#122830)

This replaces `_PyList_FromArraySteal` with `_PyList_FromStackRefSteal`.
It's functionally equivalent, but takes a `_PyStackRef` array instead of
an array of `PyObject` pointers.

Co-authored-by: Ken Jin <kenjin@python.org>
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.

2 participants