python / python/cpython

Python3.15.0a1 REPL : issue with pasting of Tab indented multiline code

Offen
#140,502 15 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

3.14 3.15 stdlib topic-repl type-bug
Vorherrschende Sprache
Python
Sterne
77.2k
Forks
35.9k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginnen Sie damit, die gezeigte mehrzeilige, mit Tabulatoren eingerückte Eingabe in der Python 3.15 REPL unter Linux zu reproduzieren und ihre Ausgabe mit Python 3.13 zu vergleichen. Die Korrektur ist abgeschlossen, wenn eingefügter mehrzeiliger Code korrekt ausgerichtet bleibt, anstatt große Abstandsverschiebungen zu erhalten; der Issue verweist auf den verknüpften PR gh-140697.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.