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

Export pyobject_* macros #153

Closed
termoshtt opened this issue May 4, 2018 · 0 comments
Closed

Export pyobject_* macros #153

termoshtt opened this issue May 4, 2018 · 0 comments

Comments

@termoshtt
Copy link

Hi, thanks for keeping this project :)

I am trying to implement the backend of rust-numpy with PyO3. I am implementing traits in PyO3, e.g. ToPyObject for the struct PyArray(PyObject), which wraps the PyArrayObject in NumPy C API.
The implementations of these traits for most primitive types, e.g. PyList, are automatically derived using pyobject_nativetype! and other pyobject_* macros. I would like to use these macros also for PyArray. Could you expose these macros using #[macro_export]?
If you have a plan to replace them by custom derives, I willing to help it.

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