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
- 派生
- 35.9k
- 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