-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add safe interface to clear
WRITEABLE
flag
The dynamic borrow checker for `PyReadwriteArray` understood the flag, but the crate offered no public way to set it. General manipulation of the `flags` field is unsafe (things like `OWNDATA` should never be modified by hand), but flipping the `WRITEABLE` flag to `false` is safe.
- Loading branch information
1 parent
6cd2a84
commit a4b922f
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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