Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Consider adding LazyIO and friends

オープン
#525 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
backend

調査の方向性

まず、既存の IO と Future の実装および impure API を読みます。issue では特定のファイルは指定されていません。それらの評価動作を比較し、retry のセマンティクスと Future との相互作用を含む、意図する LazyIO API を定義します。遅延実行と繰り返しの呼び出しを実証する、合意済みの設計とテストがあれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

The thing about IO in multiple languages / libraries is that it is lazy.

Our IO is not lazy by design. It is done, so Python developers can use it like so: impure(print)(1) # prints "1"
But, we also need to think about other problems as well:

  1. Retries, with proper lazy IO one can retry an operation as many times as one wishes: p = impure_lazy(print)(1); p(); p() # prints "1" twice
  2. Semantical identity to Future, currently it is not similar to regular IO, because Futures are lazy: they don't run until they are executed properly
  3. New users will find the similar data-type they already know from other languages / libraries
主要言語
Python
スター
4.4k
フォーク
154
平均マージ
3時間 5分
マージ済み PR(30日)
22

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dry-python/returns のほかの issue

dry-python/returns の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。