Skip to content

[3.13] gh-154139: Document that curses is not thread-safe (GH-154173) - #155692

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-1ed6b78-3.13
Aug 13, 2026
Merged

[3.13] gh-154139: Document that curses is not thread-safe (GH-154173)#155692
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-1ed6b78-3.13

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 13, 2026

Copy link
Copy Markdown
Member

Whether curses is thread-safe depends on the library and how it was built.
The blocking and refresh methods release the GIL, so with a non-reentrant curses, unsynchronized use from several threads can crash.

The reference to window.use() and screen.use() is omitted: they were added in 3.16.

(cherry picked from commit 1ed6b78)

🤖 Generated with Claude Code

…onGH-154173)

Whether curses is thread-safe depends on the library and how it was built.
The blocking and refresh methods release the GIL, so with a non-reentrant
curses, unsynchronized use from several threads can crash.

The reference to window.use() and screen.use() is omitted: they were added
in 3.16.

(cherry picked from commit 1ed6b78)

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the docs Documentation in the Doc dir label Aug 13, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Aug 13, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) August 13, 2026 10:22
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) August 13, 2026 10:22
@serhiy-storchaka
serhiy-storchaka merged commit 13c9960 into python:3.13 Aug 13, 2026
34 of 35 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant