Skip to content

The pyrepl cache doesn't play well with history #121499

Closed
@pablogsal

Description

@pablogsal

Type the following in the REPL:

>>> def foo():
...     x = 1
...     y = 2
...     z = 3
...
>>> def bar():
...     return 42
...

Now press up arrow 3 times to go to the foo function. The REPL shows:

>>> def bar():
...     x = 1
...     y = 2
...     z = 3

which is a weird mix between the two entries.

I have bisected this to 32a0fab

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