Skip to content

Conversation

@gerrymanoim
Copy link
Contributor

No description provided.

@gerrymanoim
Copy link
Contributor Author

This actually breaks for me locally. We aren't checking if docs can be built as part of our tests.

@gerrymanoim gerrymanoim requested a review from llllllllll June 24, 2020 19:17
LIBPY_AUTOMODULE(libpy_tutorial, classes, ({}))
(py::borrowed_ref<> m) {
py::owned_ref t =
py::autoclass<vec3d>("classes.Vec3d")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love that classes is duplicated. What about `PyModule_GetName(m) + ".Vec3d"?
Also, or in addition, maybe we should make some helper to set the proper path and add the type without needing the cast.

@gerrymanoim gerrymanoim force-pushed the automodule-tutorial branch from 03f122c to 2105f6f Compare June 25, 2020 21:11
@gerrymanoim gerrymanoim merged commit 87d69ca into master Jun 25, 2020
@gerrymanoim gerrymanoim deleted the automodule-tutorial branch June 25, 2020 22:18
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

Successfully merging this pull request may close these issues.

3 participants