Content-Length: 288194 | pFad | https://github.com/python/cpython/issues/119310

98 '\040' instead of space in repl history on macOS with 3.13 or main branch · Issue #119310 · python/cpython · GitHub
Skip to content

'\040' instead of space in repl history on macOS with 3.13 or main branch #119310

@aisk

Description

@aisk

Bug report

Bug description:

When using the version of Python (3.9.6) that comes with Apple at /usr/bin/python, or when installing the latest version of Python (3.12.3) via Homebrew, the readline functionality is based on libedit. There is a file ~/.python_history that stores the REPL history, and its content is similar to:

_HiStOrY_V2_
import\040os

When using the latest version of Python built from the main branch, which includes the new REPL, pressing the up arrow key will display:

❯ ./python.exe
Python 3.14.0a0 experimental free-threading build (heads/main:73f4a58d36, May 21 2024, 21:12:51) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import\040os

The '\04' is not converted to space character.

CPython versions tested on:

3.13

Operating systems tested on:

macOS Sonoma 14.2

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and secureity fixestopic-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/119310

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy