FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

BUG: Set writeable flag for writeable dlpacks. by charris · Pull Request #28632 · numpy/numpy · GitHub

/ numpy Public

BUG: Set writeable flag for writeable dlpacks. - #28632

Merged
charris merged 1 commit into
numpy:maintenance/2.2.xfrom
charris:backport-28600
Apr 2, 2025
Merged

charris merged 1 commit into
numpy:maintenance/2.2.xfrom
charris:backport-28600

Conversation

charris commented Apr 2, 2025
edited
Loading

Copy link
Copy Markdown
Member

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 added 00 - Bug 08 - Backport Used to tag backport PRs labels Apr 2, 2025
charris added this to the 2.2.5 release milestone Apr 2, 2025
charris merged commit 7f3361f into numpy:maintenance/2.2.x Apr 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL