Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

BUG: Set writeable flag for writeable dlpacks. #28632

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

Merged
merged 1 commit into from
Apr 2, 2025

Conversation

charris
Copy link
Member

@charris charris commented Apr 2, 2025

Backport of #28600.

Explicitly set the writeable flag in from_dlpack as the inverse of the dlpack read_only flag. Previously it was not actually being set.

Additionally, update the readonly logic such that legacy unversioned DLPacks are never writeable, for compatibility with old behavior.

Fixes #28599

Explicitly set the writeable flag in from_dlpack as the inverse of the
dlpack read_only flag. Previously it was not actually being set.

Additionally, update the readonly logic such that legacy unversioned
DLPacks are never writeable, for compatibility with old behavior.

Fixes numpy#28599
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Apr 2, 2025
@charris charris added this to the 2.2.5 release milestone Apr 2, 2025
@charris charris merged commit 7f3361f into numpy:maintenance/2.2.x Apr 2, 2025
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.