-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
AsPyRef is stripped down, not in changelog #738
Comments
Thank you. |
I was using them to access instances of a Rust object that were behind a If there is better or newer way, let me know :) |
Any news on this? |
There's a soundness problem; because I think we really need to have |
Just a reference for readers: https://docs.rs/pyo3/0.8.5/pyo3/trait.AsPyRef.html @davidhewitt |
@davidhewitt you're right; this cannot be allowed like it was. A RefCell like functionality with runtime checking would be very nice. @kngwyu |
Now |
Great, thanks! |
The
AsPyRef
trait was stripped down considerably; methodswith
,with_mut
,into_py
,into_mut_py
are gone.The changelog should mention how to rewrite code using them, or if removal was an oversight they should be reinstated.
The text was updated successfully, but these errors were encountered: