Skip to content

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

Merged
adamreichold merged 1 commit intoPyO3:mainfrom
davidhewitt:as-gil-ref
Dec 25, 2023
Merged

expose Bound::as_gil_ref and Bound::into_gil_ref#3697
adamreichold merged 1 commit intoPyO3:mainfrom
davidhewitt:as-gil-ref

Conversation

@davidhewitt
Copy link
Copy Markdown
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.

@codspeed-hq
Copy link
Copy Markdown

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

@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
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