Skip to content

How would you implement a Mixin with pyo3 #3563

Answered by davidhewitt
llacroix asked this question in Questions
Discussion options

You must be logged in to vote

Try

let super_ = PySuper:: new(Mixin::type_object(py), self_)?;

... I suspect that py_super is probably only looking at the type B, which is why you get the recursion error. Probably a design oversight.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@llacroix
Comment options

Answer selected by llacroix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants