Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-142518: Move thread safety sections into a new page#144716

Merged
lysnikolaou merged 3 commits into
python:mainpython/cpython:mainfrom
lysnikolaou:thread-safety-pagelysnikolaou/cpython:thread-safety-pageCopy head branch name to clipboard
Feb 25, 2026
Merged

gh-142518: Move thread safety sections into a new page#144716
lysnikolaou merged 3 commits into
python:mainpython/cpython:mainfrom
lysnikolaou:thread-safety-pagelysnikolaou/cpython:thread-safety-pageCopy head branch name to clipboard

Conversation

@lysnikolaou

@lysnikolaou lysnikolaou commented Feb 11, 2026

Copy link
Copy Markdown
Member
  • Create a new page for thread safety notes for built-in types
  • Move thread safety notes for list into the new page
  • Move thread safety notes for dict into the new page

📚 Documentation preview 📚: https://cpython-previews--144716.org.readthedocs.build/

- Create a new page for thread safety notes for built-in types
- Move thread safety notes for `list` into the new page
- Move thread safety notes for `dict` into the new page
Comment thread Doc/library/threadsafety.rst Outdated
Comment thread Doc/library/threadsafety.rst Outdated
Comment thread Doc/library/threadsafety.rst Outdated
Comment thread Doc/library/threadsafety.rst Outdated
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>

@encukou encukou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Except a PEP-8 nitpick, this looks great to me! Thank you!

Comment thread Doc/library/threadsafety.rst Outdated

# NOT atomic: check-then-act
if lst:
item = lst.pop()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code blocks should use 4-space indentation.

Suggested change
item = lst.pop()
item = lst.pop()

(More of the same below.)

@lysnikolaou lysnikolaou merged commit 017ccd3 into python:main Feb 25, 2026
29 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @lysnikolaou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Feb 25, 2026
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 25, 2026
…H-144716)

- Create a new page for thread safety notes for built-in types
- Move thread safety notes for `list` into the new page
- Move thread safety notes for `dict` into the new page
---------
(cherry picked from commit 017ccd3)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@bedevere-app

bedevere-app Bot commented Feb 25, 2026

Copy link
Copy Markdown

GH-145223 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Feb 25, 2026
lysnikolaou added a commit that referenced this pull request Feb 25, 2026
) (#145223)

- Create a new page for thread safety notes for built-in types
- Move thread safety notes for `list` into the new page
- Move thread safety notes for `dict` into the new page
---------
(cherry picked from commit 017ccd3)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
brijkapadia pushed a commit to brijkapadia/cpython that referenced this pull request Feb 28, 2026
…144716)

- Create a new page for thread safety notes for built-in types
- Move thread safety notes for `list` into the new page
- Move thread safety notes for `dict` into the new page
---------

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
…144716)

- Create a new page for thread safety notes for built-in types
- Move thread safety notes for `list` into the new page
- Move thread safety notes for `dict` into the new page
---------

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
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 topic-free-threading

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.