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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

pymethods: make inventory optional #1457

Merged
merged 2 commits into from Mar 6, 2021

Conversation

davidhewitt
Copy link
Member

With this PR, inventory is opt-in (via the multiple-pymethods feature) and only needed if you want to have multiple #[pymethods] for the same #[pyclass].

This is breaking, so we could make it opt-out. However I think most users won't use multiple #[pymethods] per class so will enjoy the reduced dependencies & faster compile times without noticing anything changed 馃槃

I plan to push a number of updates to the guide before this PR is ready to be merged. (e.g. information about the feature, migration guide etc.)

@davidhewitt
Copy link
Member Author

After #1458 is merged I will rebase on it, which should fix the issues I put into the CI workflow 馃槃

Copy link
Member

@kngwyu kngwyu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

src/class/methods.rs Show resolved Hide resolved
@davidhewitt
Copy link
Member Author

I've pushed a bunch of documentation tweaks. Unless any changes are needed to those, this PR should be good to merge!

@davidhewitt davidhewitt merged commit a45f520 into PyO3:master Mar 6, 2021
@davidhewitt davidhewitt deleted the multiple-pymethods branch May 25, 2021 06:32
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.

None yet

2 participants