Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set or modify tp_flags? #273

Open
fsh opened this issue Sep 23, 2021 · 0 comments
Open

How to set or modify tp_flags? #273

fsh opened this issue Sep 23, 2021 · 0 comments

Comments

@fsh
Copy link
Contributor

fsh commented Sep 23, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant