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

Macro attribute reworks #1601

Closed
5 of 7 tasks
davidhewitt opened this issue May 11, 2021 · 3 comments
Closed
5 of 7 tasks

Macro attribute reworks #1601

davidhewitt opened this issue May 11, 2021 · 3 comments
Milestone

Comments

@davidhewitt
Copy link
Member

davidhewitt commented May 11, 2021

With #1567 merged we created the #[pyo3(name = "...")] attribute for #[pyfunction].

For consistency we should also support this pattern in the other macros too:

There's also some other attributes which I would like to move to the #[pyo3(...)] namespace for the 0.14 release:

Once we have all of these in place, we'll be much closer to a standard syntax for these attributes. This can lead to possible future improvements like a possible #[pyo3] macro (#1567 (comment), #211).

@davidhewitt
Copy link
Member Author

davidhewitt commented May 11, 2021

I'll aim to implement each of these as individual PRs over the coming weeks heading into 0.14.

If anyone else is interested in implementing any of these, please feel welcome to claim them on this issue! I can give further information if the notes above aren't clear enough in any spots.

@davidhewitt
Copy link
Member Author

I think once #1650 is merged then I'm happy with the changes done in advance of the 0.14 release; I think the rest of the changes here can wait for a future release:

@davidhewitt davidhewitt mentioned this issue Jun 6, 2021
7 tasks
@davidhewitt davidhewitt added this to the 0.15 milestone Aug 15, 2021
@davidhewitt davidhewitt modified the milestones: 0.15, 0.16 Nov 7, 2021
@davidhewitt davidhewitt modified the milestones: 0.16, 0.17 Feb 26, 2022
@davidhewitt
Copy link
Member Author

Closing this; the #[args] / #[signature] question is tracked separately in #2193.

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

No branches or pull requests

1 participant