Python3.15.0a1 REPL : issue with pasting of Tab indented multiline code
Ouverte
Personne n'a encore pris cette issue.
3.14
3.15
stdlib
topic-repl
type-bug
- Langage dominant
- Python
- Étoiles
- 77.2k
- Forks
- 35.9k
- Métriques de merge des PR
- Métriques de PR en attente
Description
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
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire le collage multiligne montré, indenté avec des tabulations, dans la REPL Python 3.15 sous Linux et comparez sa sortie avec celle de Python 3.13. Le correctif est terminé lorsque le code multiligne collé reste correctement aligné au lieu d'acquérir de grands décalages d'espacement ; l'issue fait référence à la PR liée gh-140697.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100