Replies: 3 comments 3 replies
-
Can you provide the full diagnostic? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Anyway, this is probably because you're using an older Python version. When we migrated to the Bound api we had to gate |
Beta Was this translation helpful? Give feedback.
2 replies
-
https://docs.rs/pyo3/latest/pyo3/pybacked/struct.PyBackedStr.html is
another option
…On Sun, Apr 27, 2025 at 3:22 PM Icxolu ***@***.***> wrote:
Due to the FromPyObject/FromPyObjectBound split we currently still have, borrowing does not work inside of tuples, only directly in argument position (#4390 should solve that). If you can live with a copy (String, String) should also work.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
--
All that is necessary for evil to succeed is for good people to do nothing.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have some code that used to work on an older version of PyO3 (0.20.0)
This code now raises the error:
What is the most idiomatic and proper way to write this code now?
P.S. More "real" examples that go beyond passing simple strings or integers would be greatly appreciated. I've done lots of searching and haven't seen much of anything that looks like this.
Beta Was this translation helpful? Give feedback.
All reactions