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

BUG: Remove temporary change of descr/flags in VOID functions #18462

Merged
merged 2 commits into from Feb 22, 2021

Conversation

charris
Copy link
Member

@charris charris commented Feb 21, 2021

Backport or #15392.

This is done using a hack around stack allocated arrays, which
requires some dark magic with respect to the setting the base
object (we skip normal arrays and INCREF/DECREF during base setting,
which does work for such static arrays, but only if we give them
a (not quite) fake refcount of 1 and set the base and their type
correctly to PyArrayType.

Closes gh-15387

This is done using a hack around stack allocated arrays, which
requires some dark magic with respect to the setting the base
object (we skip normal arrays and INCREF/DECREF during base setting,
which _does_ work for such static arrays, but only if we give them
a (not quite) fake refcount of 1 and set the base and their type
correctly to PyArrayType.

Closes numpygh-15387
@charris charris added this to the 1.20.2 release milestone Feb 21, 2021
@charris charris merged commit 311c20b into numpy:maintenance/1.20.x Feb 22, 2021
@charris charris deleted the backport-15392 branch May 3, 2021 17:30
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