Replies: 1 comment
-
This is related to the discussion in #1637 (comment) . In all honesty we should think more about this case, because some users will want to do it (and it's a natural analogy of Python / C's inheritance mechanism). But to do so requires quite some work in the internals of PyO3. Would be happy to chat more about this! |
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
-
Hello.
I have a question.
I have one crate with something like:
In other crate I would wrap it in python classes.
And question is how to make this subclassing?
In subclassing examples structs do not share a data.
Right now I duplicate methods for A in pyclass wrapers for B and C. But it's look ugly and bad at all.
Beta Was this translation helpful? Give feedback.
All reactions