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

chore(python): Start at using new Bound<> API from PyO3 #15752

Merged
merged 14 commits into from
Apr 19, 2024

Conversation

itamarst
Copy link
Contributor

@itamarst itamarst commented Apr 18, 2024

Fixes #15699

There will be more follow-up PRs, this is just a small chunk of the usages that need upgrading (although hopefully not as tricky).

@github-actions github-actions bot added internal An internal refactor or improvement python Related to Python Polars labels Apr 18, 2024
"timedelta" => get_timedelta,
"Decimal" => get_decimal,
"range" => get_list,
"date" => get_date as InitFn,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lacking the as InitFn I got errors about "expected fn pointer, got fn item" (or vice versa?).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(Unresolving temporarily, just in case someone else reviews)

Copy link

codecov bot commented Apr 18, 2024

Codecov Report

Attention: Patch coverage is 97.19626% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 81.36%. Comparing base (f992a7a) to head (004792b).
Report is 49 commits behind head on main.

Files Patch % Lines
py-polars/src/functions/io.rs 60.00% 2 Missing ⚠️
py-polars/src/file.rs 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15752      +/-   ##
==========================================
+ Coverage   81.31%   81.36%   +0.04%     
==========================================
  Files        1373     1379       +6     
  Lines      176256   176719     +463     
  Branches     2544     2542       -2     
==========================================
+ Hits       143327   143786     +459     
- Misses      32447    32452       +5     
+ Partials      482      481       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46 ritchie46 force-pushed the 15669-new-bound-api-pyo3 branch from 5da29fe to 8086043 Compare April 19, 2024 09:22
Copy link

codspeed-hq bot commented Apr 19, 2024

CodSpeed Performance Report

Merging #15752 will not alter performance

Comparing itamarst:15669-new-bound-api-pyo3 (004792b) with main (cbf7266)

Summary

✅ 22 untouched benchmarks

@itamarst
Copy link
Contributor Author

Thank you, that was educational. I'll finish this up today.

@itamarst itamarst marked this pull request as ready for review April 19, 2024 12:26
@itamarst itamarst requested a review from orlp as a code owner April 19, 2024 12:26
@itamarst itamarst requested a review from ritchie46 April 19, 2024 12:26
Copy link
Member

@ritchie46 ritchie46 left a comment

Choose a reason for hiding this comment

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

Alright. Looks great. Thank you @itamarst!

@ritchie46 ritchie46 merged commit e2845ae into pola-rs:main Apr 19, 2024
25 checks passed
@itamarst itamarst deleted the 15669-new-bound-api-pyo3 branch April 19, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants