GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-154549: warning for `thread_inherit_context` change by nascheme · Pull Request #154558 · python/cpython

Conversation

@nascheme

@nascheme nascheme commented Jul 23, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

On GIL-enabled builds, emit a DeprecationWarning when the default implicitly empty threading.Thread() context causes a context variable lookup to differ from the context that a future release will inherit by default.

  • Issue: Warn about future default of thread_inherit_context=1. #154549

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nascheme
pythongh-154549: warning for thread_inherit_context change
f0ec3e2
On GIL-enabled builds, emit a DeprecationWarning when the default
implicitly empty threading.Thread() context causes a context variable
lookup to differ from the context that a future release will inherit by
default.
@bedevere-app bedevere-app Bot mentioned this pull request Jul 23, 2026
Warn about future default of thread_inherit_context=1. #154549
Open
@read-the-docs-community

read-the-docs-community Bot commented Jul 23, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33730002 | 📁 Comparing f0ec3e2 against main (66e313f)

  🔍 Preview build  

3 files changed
± library/threading.html
± using/cmdline.html
± whatsnew/changelog.html
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nascheme nascheme mentioned this pull request Jul 24, 2026
Combined PR to show ContextVar changes together #154647
Closed
@nascheme
nascheme marked this pull request as ready for review July 24, 2026 21:52
@nascheme
nascheme requested review from 1st1, FFY00, ZeroIntensity and ericsnowcurrently as code owners July 24, 2026 21:52
@bedevere-app bedevere-app Bot added the awaiting core review label Jul 24, 2026
@nascheme

nascheme commented Aug 1, 2026

Copy link
Copy Markdown
Member Author

Converting to draft. The warning/default migration should remain separate from the per-variable inheritance API and should not proceed until a default flip is scheduled and libraries have had a release to adopt the mitigation. This is paused rather than abandoned.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nascheme
nascheme marked this pull request as draft August 1, 2026 18:53
@bedevere-app bedevere-app Bot removed the awaiting core review label Aug 1, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 90 days with no activity.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently is a code owner
@ZeroIntensity ZeroIntensity Awaiting requested review from ZeroIntensity ZeroIntensity is a code owner
@FFY00 FFY00 Awaiting requested review from FFY00 FFY00 is a code owner
@1st1 1st1 Awaiting requested review from 1st1 1st1 is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

stale Stale PR or inactive for long period of time.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@nascheme
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.