how to use pyo3 correctly after v0.23? #5360
-
So, pyo3 deprecated the usage of As you can see in the patch, it is riddled with method chainings and unwraps. I read the migrated guide and related discussions, but really couldn't find better methods. Also full disclosure that I am not primarily a rust guy, so several things you all find obvious might not be so for me. If you take the examples like So, what are the correct ways to use these now? I'd appreciate it if the explanations come in the context of my patch for pendulum, which can help me understand it better as well as upstream the patch. PS: I know #4857 is there, but I am starting this seperate discussion hoping for a more beginner friendly discussion. Sorry if that is too much, but fwiw that one doesn't help me beyond a certain extend, and is already marked as answered. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
You might be able to avoid the Do you have a link to the full code that's being modified? I don't think there's enough context in the patch to give better advice and I don't know how to navigate that site. |
Beta Was this translation helpful? Give feedback.
-
I'm curious why this is the case. This feature does nothing when targeting Linux-based platforms (supposedly). |
Beta Was this translation helpful? Give feedback.
@Icxolu Thank you! I think I have a much better understanding of it now. Since the answers are fragmented throughout, I'll just add the full patch that I have now ended up with for completions sake, and mark it as answer. I really appreciate the help!