-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Question: how to set the name attribute for py::capsule? #894
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
Comments
Not currently supported, I'm afraid, but we'd happily accept a PR to add it. (It would be quite easy to do by adding an optional |
Easy enough for the first constructor: but for the other, would it mean adding name as the third optional argument, so changing the argument order from that expected for PyCapsule_New? |
Though leaving just that constructor for specifying the name seems reasonable, too. |
ok, see #902 |
Closed via #902. |
Is it possible to embed the function signature as a string in py::capsule? This is needed for the new scipy lowlevelcallable interface -- something like cython's PyCapsule_New
I don't seem to see it in pytypes.h
thanks, Phil
The text was updated successfully, but these errors were encountered: