Skip to content

F1/F2/F3 behavior in the new repl #121584

@saucoide

Description

@saucoide

Bug report

Bug description:

Not sure if to split this into different issues may be better but anyhow

Trying out the new repl in 3.13.0b3, some of these maybe are not bugs but the
behavior feels weird:

When using the F1/F2/F3 keys there are these different behaviors:

F3 - pressing it twice toggles between paste/prompt
F2 - Pressing it twice does nothing, q exits, but ignores whatever was already in
the prompt, and adds a new one without a newline, shifting the prompt rightwards:

F2 + q multipe times:

➜ python
Python 3.13.0b3 (main, Jun 27 2024, 13:06:51) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> >>> >>> >>> >>> >>> >>> >>> 

F2 + q after having something there already

Python 3.13.0b3 (main, Jun 27 2024, 13:06:51) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> def foo():
...     i = 0
...     for n in range(10):>>> 

F1 - pressing it twice opens a nested help menu, if you do it a few times because you
think it didnt work, you have to q-q-q-quit

Trying on pypy's repl it doesnt seem possible to trigger help() from within help but
in the 3.13's repl its bound to F1 and keeps working :)

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy