expressions in blocks don't print their value in the REPL
まだ誰も着手していません。
評価
調査の方向性
RustPython REPL で 2 つのスニペットを再現し、for ブロックと with ブロック内の式がどのように評価され、表示されるかを追跡します。ループでは 0 から 9 まで、f.write('hello') では 5 が REPL に出力され、CPython の例と一致すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Try the following snippets:
for i in range(10):
i
with open('/tmp/file.txt', 'w') as f:
f.write('hello')
In CPython:
>>> for i in range(10):
... i
...
0
1
2
3
4
5
6
7
8
9
>>> with open('/tmp/file.txt', 'w') as f:
... f.write('hello')
...
5
>>>
In RustPython:
>>>>> for i in range(10):
..... i
.....
>>>>> with open('/tmp/file.txt', 'w') as f:
..... f.write('hello')
.....
>>>>>
- 主要言語
- Rust
- スター
- 22.4k
- フォーク
- 1.5k
- 平均マージ
- 15時間 18分
- マージ済み PR(30日)
- 172
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RustPython/RustPython のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
RustPython/RustPython#8470 · コメント 2 件 ·
-
C-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
RustPython/RustPython#7995 · コメント 5 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
RustPython/RustPython#5577 ·
-
C-bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
RustPython/RustPython#8685 · コメント 7 件 · リアクション 1 件 ·
-
C-compat
RustPython/RustPython#8496 · コメント 1 件 · 担当者 1 名 ·
RustPython/RustPython の issue をすべて見る
似ている issue
-
area: compat bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
area: dogs bug priority: P3 silent failure test-code
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
MystenLabs/sui#28056 · コメント 1 件 ·
-
type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Luminous-Dynamics/mycelix#2577 ·