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

expose Bound::as_gil_ref and Bound::into_gil_ref #3697

Merged
merged 1 commit into from
Dec 25, 2023

Conversation

davidhewitt
Copy link
Member

This PR exposes Bound::as_gil_ref and Bound::into_gil_ref as deprecated public APIs.

As a general strategy for making the deprecation warnings manageable internally, for the blocks like impl PyMapping which implements the GIL ref API for PyMapping, I've put #[allow(deprecated)] on the whole block. IMO I think this is better than marking #[allow(deprecated)] all uses inside those methods, but I can be persuaded otherwise.

Copy link

codspeed-hq bot commented Dec 24, 2023

CodSpeed Performance Report

Merging #3697 will not alter performance

Comparing davidhewitt:as-gil-ref (38abfd2) with main (6ca63b5)

Summary

✅ 78 untouched benchmarks

src/instance.rs Outdated Show resolved Hide resolved
@adamreichold adamreichold added this pull request to the merge queue Dec 25, 2023
Merged via the queue into PyO3:main with commit ff373eb Dec 25, 2023
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-skip-changelog Skip checking changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants