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

Remove unsendable from all Rust pyclass types. #348

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

kylebrooks-8451
Copy link
Contributor

Which issue does this PR close?

Closes #347

Rationale for this change

Python objects are free to move about the Python interpreter threads and users expect to be able to use objects from different threads.

What changes are included in this PR?

Removes all #[pyclass(unsendable)] markers from our code and prevents unexpected panics from Python users.

Are there any user-facing changes?

No.

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Would be good if @jdye64 could also review.

Copy link
Contributor

@jdye64 jdye64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I see no issue with removing the unsendable markers.

@andygrove andygrove merged commit a1e2b8b into apache:main Apr 27, 2023
@kylebrooks-8451 kylebrooks-8451 deleted the hotfix/just-gonna-send-it branch April 27, 2023 22:58
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.

Make All pyclass Rust Types Sendable
3 participants