You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an extension type written with py_class!(), is there a way to set or fix the tp_flags of the resulting PyTypeObject?
For this specific use-case I want to add Py_TPFLAGS_BASETYPE so the extension class can be sub-classed in Python. Is this a quote-unquote "difficult" thing to do while still using the py_class! macro?
Any example or code appreciated.
The text was updated successfully, but these errors were encountered:
In an extension type written with
py_class!()
, is there a way to set or fix thetp_flags
of the resulting PyTypeObject?For this specific use-case I want to add
Py_TPFLAGS_BASETYPE
so the extension class can be sub-classed in Python. Is this a quote-unquote "difficult" thing to do while still using thepy_class!
macro?Any example or code appreciated.
The text was updated successfully, but these errors were encountered: