Skip to content

fix: don’t panic in when extracting PyReadwriteArray#560

Open
flying-sheep wants to merge 1 commit into
PyO3:mainfrom
flying-sheep:patch-1
Open

fix: don’t panic in when extracting PyReadwriteArray#560
flying-sheep wants to merge 1 commit into
PyO3:mainfrom
flying-sheep:patch-1

Conversation

@flying-sheep

@flying-sheep flying-sheep commented Jul 20, 2026

Copy link
Copy Markdown

fixes #559

@flying-sheep

flying-sheep commented Jul 21, 2026

Copy link
Copy Markdown
Author

OK ready now. I fixed the error type and made the test check that extracting returns an error.

Also this dovetails nicely with #562, which also changes the error type from CastError to PyErr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extracting a PyReadWriteArray can panic for no reason

1 participant