New repl shows output only for last statement from several, separated by ";"
未關閉
還沒有人認領這個 Issue。
3.13
3.14
stdlib
topic-repl
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
An example:
$ python3.13
Python 3.13.1 (tags/v3.13.1:0671451779, Dec 4 2024, 07:55:26) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 1;2
2
$ PYTHON_BASIC_REPL=1 python3.13
Python 3.13.1 (tags/v3.13.1:0671451779, Dec 4 2024, 07:55:26) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 1;2
1
2
That's valid for the current main.
A lot of docstrings in the mpmath rely on this feature of old repl. So, this looks as a bug for me.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
- gh-131341
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,使用報告中所示的分號分隔運算式範例,將標準 CPython REPL 與 PYTHON_BASIC_REPL=1 進行比較。檢查連結的 PR gh-131341,並確認一般 REPL 會輸出每個陳述式的結果,同時維持對其他輸入的現有行為不變。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 25/100