Python3.15.0a1 REPL : issue with pasting of Tab indented multiline code
未關閉
還沒有人認領這個 Issue。
3.14
3.15
stdlib
topic-repl
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
Misaligned output of pasted Tab-indented multiline code into the REPL:
~ $ python3.13
Python 3.13.8 (main, Oct 15 2025, 02:41:02) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt6.QtWidgets import QApplication, QWidget
... from PyQt6.QtGui import QPainter, QColor, QPen
... from PyQt6.QtCore import Qt, QRect
... from cv2 import (
... cvtColor,
... COLOR_Lab2RGB,
... COLOR_HSV2RGB_FULL,
... COLOR_HLS2RGB_FULL,
...
... COLOR_RGB2Lab,
... COLOR_RGB2HSV_FULL,
... COLOR_RGB2HLS_FULL,
...
... )
...
>>> exit
~ $ python3.15
Python 3.15.0a1 (main, Oct 17 2025, 14:09:27) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt6.QtWidgets import QApplication, QWidget
... from PyQt6.QtGui import QPainter, QColor, QPen
... from PyQt6.QtCore import Qt, QRect
... from cv2 import (
... cvtColor ,
... COLOR_Lab2RGB ,
... COLOR_HSV2RGB_FULL ,
... COLOR_HLS2RGB_FULL ,
...
... COLOR_RGB2Lab ,
... COLOR_RGB2HSV_FULL ,
... COLOR_RGB2HLS_FU... ) ,
...
>>> exit
~ $
CPython versions tested on:
3.15
Operating systems tested on:
Linux
Linked PRs
- gh-140697
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,在 Linux 上的 Python 3.15 REPL 中重現所示的使用 Tab 縮排的多行貼上內容,並將其輸出與 Python 3.13 進行比較。當貼上的多行程式碼能夠保持正確對齊,而不是產生很大的間距偏移時,修正就完成了;該 issue 引用了連結的 PR gh-140697。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100