pyo3
pyo3 copied to clipboard
Add way to set metaclass for #[pyclass]
apparently it works by setting the ob_type member to a custom instance (the metaclass) of a class that derives from type.
Has there been progress on this issue? I'm looking for a way of implementing a custom instancecheck for a pyclass.
Any progress would have been on this issue! A proposal of how the API should look and / or a PR to implement this is always welcome 😄
Someone mentioned this issue on Gitter. https://bugs.python.org/issue15870
It seems that metaclass is not officially supported in C extensions.