← 返回首页
[subinterpreters] Get the current Python interpreter state from Thread Local Storage (autoTSSkey) · Issue #84702 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

[subinterpreters] Get the current Python interpreter state from Thread Local Storage (autoTSSkey) #84702

New issue
New issue

Description

BPO 40522
Nosy @vstinner, @seberg, @corona10, @pablogsal, @shihai1991, @h-vetinari
PRs
  • bpo-40522: _PyThreadState_Swap() sets autoTSSkey #19939
  • bpo-40522: Store tstate in a Thread Local Storage #23976
  • bpo-40522: Replace PyThreadState_GET() with PyThreadState_Get() #24575
  • bpo-40522: Use PyThreadState_Get() in _lsprof.c #24596
  • bpo-40522: Use PyThreadState_Get() in decimal #24597
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None closed_at = None created_at = <Date 2020-05-05.17:12:14.636> labels = ['expert-subinterpreters', '3.9'] title = '[subinterpreters] Get the current Python interpreter state from Thread Local Storage (autoTSSkey)' updated_at = <Date 2021-06-29.17:34:08.113> user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2021-06-29.17:34:08.113> actor = 'h-vetinari' assignee = 'none' closed = False closed_date = None closer = None components = ['Subinterpreters'] creation = <Date 2020-05-05.17:12:14.636> creator = 'vstinner' dependencies = [] files = [] hgrepos = [] issue_num = 40522 keywords = ['patch'] message_count = 11.0 messages = ['368182', '368188', '380324', '383894', '383895', '383899', '383900', '383940', '383967', '384057', '387312'] nosy_count = 6.0 nosy_names = ['vstinner', 'seberg', 'corona10', 'pablogsal', 'shihai1991', 'h-vetinari'] pr_nums = ['19939', '23976', '24575', '24596', '24597'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = None url = 'https://bugs.python.org/issue40522' versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Fields

      No fields configured for issues without a type.

      Projects

      Status
      Done

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      • Open in GitHub Copilot app

      Footer

      © 2026 GitHub, Inc.