Use one generic type for Rust data that becomes a Python object
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by finding the PendingRequestResult, PendingPage and PendingQueryTrace types and their separate IntoPyObject impls. Read how the GIL-bound conversion works, then design the Resolve trait and the generic Pending<T: Resolve> wrapper with one IntoPyObject impl. Done when the three types use the wrapper and the duplicate impls are gone, with tests still passing.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
From the review of #234: https://github.com/scylladb/python-rs-driver/pull/234#discussion_r4273542277
Some types keep only Rust data. Later, with the GIL, they become a Python object. Examples: PendingRequestResult, PendingPage and PendingQueryTrace. Each type has its own IntoPyObject impl.
Make one generic type for this, like WithOriginalPyObject. For example: a Resolve trait and a Pending<T: Resolve> wrapper that implements IntoPyObject one time.
- Ngôn ngữ chính
- Rust
- Star
- 6
- Fork
- 8
- Merge trung bình
- 2 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 14
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của scylladb/python-rs-driver
-
Add was_applied to RequestResultĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
scylladb/python-rs-driver#259 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
API-breaking
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 69/100
scylladb/python-rs-driver#258 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
scylladb/python-rs-driver#224 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
scylladb/python-rs-driver#193 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dependency DashboardĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 5/100
scylladb/python-rs-driver#266 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của scylladb/python-rs-driver
Issue tương tự
-
A match arm above the largest i64 is compared as 0Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
DioxusLabs/dioxus#6063 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`nsh-core` fails to compile when taffy's default `calc` feature is enabled elsewhere in the graphĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
longbridge/nsh#966 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Windows docs: pin a tested ConPTY version for Kitty graphics; 1.25.260930003 corrupts large uploadsĐang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
raphamorim/rio#2021 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs: status text is out of dateĐang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
non7top/sigstore-shell#38 ·
Maintainer thường phản hồi trong vòng 1 ngày