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

Create a macro that implements a #[new] method #19

Open
MarquessV opened this issue Mar 7, 2023 · 0 comments
Open

Create a macro that implements a #[new] method #19

MarquessV opened this issue Mar 7, 2023 · 0 comments

Comments

@MarquessV
Copy link
Contributor

As mentioned in this comment there are cases where the arguments to a #[new] method on a Python type map 1:1 to the initialization of a Rust type (besides possibly using PyTryFrom). The resulting code is pretty straightforward and should work as a general purpose macro.

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