Skip to content

gh-79805: Clarify thread-safety limitations in shelve module #137997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

furkanonder
Copy link
Contributor

@furkanonder furkanonder commented Aug 20, 2025

@furkanonder furkanonder added docs Documentation in the Doc dir skip news labels Aug 20, 2025
@furkanonder furkanonder added stdlib Python modules in the Lib dir needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Aug 20, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Aug 20, 2025
differs across Unix versions and requires knowledge about the database
reading or writing. Additionally, within a single program, concurrent access
from multiple threads is not supported and may lead to data corruption,
unexpected behavior, or crashes. This affects all writing operations including
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of the loop here, but at a glance, is there any way to prevent the crashes (e.g. with some simple locking)? We typically don't want pure-Python code to be able to crash, unless it's in ctypes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review docs Documentation in the Doc dir needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes skip news stdlib Python modules in the Lib dir
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants