Skip to content

on Windows, Python 3.13.7 interactive shell has few bugs #137982

@SUCM

Description

@SUCM

Bug report

Bug description:

test_str = '''
Python was conceived in the late 1980s[41] by Guido van Rossum at Centrum Wiskunde & Informatica (CWI) in the Netherlands
(he first released it in 1991 as Python 0.9.0.[42]); it was conceived as a successor to the ABC programming language, which was inspired by SETL,[43] 
capable of exception handling and interfacing with the Amoeba operating system.[13] Python implementation began in December, 1989.[44] Van Rossum assumed sole responsibility for the project, 
as the lead developer, until 12 July 2018, when he announced his "permanent vacation" from responsibilities as Python's "benevolent dictator for life" (BDFL);
this title was bestowed on him by the Python community to reflect his long-term commitment as the project's chief decision-maker.[45] (He has since come out of 
retirement and is self-titled "BDFL-emeritus".) In January 2019, active Python core developers elected a five-member Steering Council to lead the project.[46][47]
However, Python features regularly violate these principles and have received criticism for adding unnecessary language bloat.[67] Responses to these criticisms note that the Zen of Python is a guideline rather than a rule.[68] The addition of some new features had been controversial: Guido van Rossum resigned as Benevolent Dictator for Life after conflict about adding the assignment expression operator in Python 3.8.[69][70]
Nevertheless, rather than building all functionality into its core, Python was designed to be highly extensible via modules. This compact modularity has made it particularly popular as a means of adding programmable interfaces to existing applications. Van Rossum's vision of a small core language with a large standard library and easily extensible interpreter stemmed from his frustrations with ABC, which represented the opposite approach.[41]
Python claims to strive for a simpler, less-cluttered syntax and grammar, while giving developers a choice in their coding methodology. In contrast to Perl's motto "there is more than one way to do it", Python advocates an approach where "there should be one—and preferably only one—obvious way to do it.".[66] In practice, however, Python provides many ways to achieve a given goal. There are, for example, at least three ways to format a string literal, with no certainty as to which one a programmer should use.[71] Alex Martelli is a Fellow at the Python Software Foundation and Python book author; he wrote that "To describe something as 'clever' is not considered a compliment in the Python culture."[72] 
'''
  1. pasting the above multi-line texts a few times into Python 3.13 interactive shell using mouse right click while in F3 paste mode will messed up interactive shell display. the (paste) prompt starts running around. doesn't happen when not in F3 paste modeImage
  2. after resizing (increase height and width) Python 3.13 interactive shell window, subsequent code and texts would line break at weird places. in the following screenshot, first text pasting was done before window resizing. second text pasting was done after window resizing. is it possible to not have the new shell control or auto insert line break?
Image

Not sure if 1&2 are related to #gh-132267, but all 2 issues don't exist on Python 3.12 or when started Python 3.13.x with PYTHON_BASIC_REPL

CPython versions tested on:

3.13

Operating systems tested on:

Windows


Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixespendingThe issue will be closed if no feedback is providedstdlibPython modules in the Lib dirtopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions