Content-Length: 288670 | pFad | https://github.com/python/cpython/issues/121499

ad The pyrepl cache doesn't play well with history · Issue #121499 · python/cpython · GitHub
Skip to content

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

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









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/121499

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy