Skip to content

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

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

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

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 merged commit 48f82d7 into python:3.14 Aug 13, 2026
41 of 42 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