Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Use one generic type for Rust data that becomes a Python object

Aperta
#238 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, rust
Ambito
databases

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
6
Fork
8
Merge medio
3g 21h
PR unite (30g)
16

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di scylladb/python-rs-driver

Tutte le issue di scylladb/python-rs-driver

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.