]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126895: Fix readline module in free-threaded build (#131208)
authorTomasz Pytel <tompytel@gmail.com>
Mon, 17 Mar 2025 15:57:11 +0000 (11:57 -0400)
committerGitHub <noreply@github.com>
Mon, 17 Mar 2025 15:57:11 +0000 (11:57 -0400)
commit863d54cbaf6c0b45fff691ab275515c1483ad68d
treebe908c1c3d52758232a53f624d4a449f7a424c80
parent9a634c5c0cde70a0575c006d04e4cfe917f647ef
gh-126895: Fix readline module in free-threaded build (#131208)

The underlying readline library is not thread-safe so this adds `@critical_section` to functions that use it.
Lib/test/test_readline.py
Misc/NEWS.d/next/Library/2025-03-13-19-54-57.gh-issue-126895.eJP9l0.rst [new file with mode: 0644]
Modules/clinic/readline.c.h
Modules/readline.c