-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
chore(python): More PyO3 0.21 Bound<> APIs, and finally disable gil-refs backwards compat feature on pyo3 crate #16143
chore(python): More PyO3 0.21 Bound<> APIs, and finally disable gil-refs backwards compat feature on pyo3 crate #16143
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16143 +/- ##
==========================================
+ Coverage 80.96% 81.00% +0.04%
==========================================
Files 1386 1392 +6
Lines 178437 178916 +479
Branches 2882 2901 +19
==========================================
+ Hits 144463 144923 +460
- Misses 33480 33488 +8
- Partials 494 505 +11 ☔ View full report in Codecov by Sentry. |
Isn't there a feature flag that prohibits the old style usage? |
Docs just say "As a final step of migration, deactivating the However, most even if not all usages of the old API will have a deprecation warning message now that |
@ritchie46 back to you. |
Alright! thanks for this one @itamarst. Great to be up to date and hopefully we'll have some perf benefits out of it. It is at least much clearer where the cost is now, so once we can drop py38, we'll do another pass. |
Fixes #16142
Note that I am not convinced we've caught all usages of the old reference-style code (
&PyAny
and friends instead ofBound<PyAny>
). Not everything is quite deprecated yet, is my impression. I have supplemented explicit warnings with some grepping, but still. But, presumably this will get caught as newer PyO3 releases come out.