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

long tracebacks

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

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

評価

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

調査の方向性

Start by reviewing the Stream usage shown in the issue and the proposed to_graph() and run(graph, input) entry points. The issue does not identify files, tests, an existing execution path, or acceptance criteria, so the desired traceback behavior and definition of done need to be established first.

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

説明

I'm wondering if we can avoid long tracebacks:

In [1]: from streamz import Stream

In [2]: s = Stream()

In [3]: snext = s
   ...: for i in range(10):                                                                     
   ...:     snext = snext.map(lambda x : x)
   ...:     

In [4]: def foo(x):
   ...:     raise ValueError("Foo")                                                                               
   ...: 

In [5]: snext.sink(foo)
Out[5]: <sink: foo>

In [6]: s.emit(1)
.... Long error message
<ipython-input-4-9636b5287c3d> in foo(x)
      1 def foo(x):
----> 2     raise ValueError("Foo")

ValueError: Foo

A way around this could be that the stream returns a graph which is executed one by one by an external function, like:

graph = s.to_graph()
run(graph, input)

where the run function would walk through each node in the graph in a top-down fashion and resolve the results.

Any other thoughts? Just an idea I figured I'd document somewhere. thanks!

主要言語
Python
スター
1.3k
フォーク
149
平均マージ
17時間 39分
マージ済み PR(30日)
1

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

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

はじめの一歩

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

python-streamz/streamz のほかの issue

python-streamz/streamz の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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