Use one generic type for Rust data that becomes a Python object
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Rust
- スター
- 6
- フォーク
- 8
- 平均マージ
- 3日 21時間
- マージ済み PR(30日)
- 16
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
scylladb/python-rs-driver のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
scylladb/python-rs-driver#224 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
scylladb/python-rs-driver#193 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
scylladb/python-rs-driver#248 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
scylladb/python-rs-driver#246 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
Optimize callbacksオープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
scylladb/python-rs-driver#245 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
scylladb/python-rs-driver の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
longbridge/gpui-kit#3620 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
mongodb/kingfisher#564 ·
メンテナーはふだん 1 日以内に返信
-
bug qq-feedback
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
corro-client drops the last byte of a response line that has no trailing newline対応中かも @RaphaelFakhri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
proxy: include denial_category in the "proxy request denied" log line対応中かも @sreyas-endor が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
nolabs-ai/nono#2172 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信