Skip to content

gh-117139: Replace _PyList_FromArraySteal with stack ref variant - #122830

Merged
colesbury merged 1 commit into
python:mainfrom
colesbury:gh-117139-list-steal
Aug 12, 2024
Merged

gh-117139: Replace _PyList_FromArraySteal with stack ref variant#122830
colesbury merged 1 commit into
python:mainfrom
colesbury:gh-117139-list-steal

Conversation

@colesbury

@colesburycolesbury commented Aug 8, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

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

@DinoVDinoV left a comment

Copy link
Copy Markdown
Contributor

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:mainAug 12, 2024
@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 freeto 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

@colesbury@DinoV