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 — Move _testclinic to multi-phase init · Issue #150097 · python/cpython

Move _testclinic to multi-phase init #150097

New issue
Copy link
New issue
Copy link
Open
Open
Move _testclinic to multi-phase init#150097
Copy link
Assignees
cmaloney
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)

Description

@cmaloney
cmaloney
opened on May 19, 2026
Issue body actions

Proposal:

Currently adding new types to clinic requires new static globals. Should move to PEP-489.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

  • gh-150097: Move _testclinic to multi-phase init #157968

Activity

  1. cmaloney
    self-assigned this
    on May 19, 2026
  2. cmaloney
    added
    extension-modulesC modules in the Modules dirC modules in the Modules dir
    type-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
    on May 19, 2026
  3. vstinner commented on May 21, 2026

    @vstinner
    vstinner
    on May 21, 2026
    Member
    More actions

    Would you mind to list the current global variables? How are they generated?

  4. cmaloney commented on May 21, 2026

    @cmaloney
    cmaloney
    on May 21, 2026
    ContributorAuthor
    More actions

    The current list lives at:

    cpython/Tools/c-analyzer/cpython/globals-to-fix.tsv

    Lines 349 to 355 in 32104a1

    Modules/_testclinic.c - DeprStarInit -
    Modules/_testclinic.c - DeprStarInitNoInline -
    Modules/_testclinic.c - DeprStarNew -
    Modules/_testclinic.c - DeprKwdInit -
    Modules/_testclinic.c - DeprKwdInitNoInline -
    Modules/_testclinic.c - DeprKwdNew -
    Modules/_testclinic.c - TestClass -
    . Hand-written definitions of types + registration of them; as far as I can see nothing requiring static types to work.

    edit: Switched to permalink of current main

  5. vstinner commented on May 21, 2026

    @vstinner
    vstinner
    on May 21, 2026
    Member
    More actions

    Copy of the link (since it's not a permanent link):

    Modules/_testclinic.c	-	DeprStarInit	-
    Modules/_testclinic.c	-	DeprStarInitNoInline	-
    Modules/_testclinic.c	-	DeprStarNew	-
    Modules/_testclinic.c	-	DeprKwdInit	-
    Modules/_testclinic.c	-	DeprKwdInitNoInline	-
    Modules/_testclinic.c	-	DeprKwdNew	-
    Modules/_testclinic.c	-	TestClass	-
    
    Reacted by Cody Maloney
  6. cmaloney
    added 3 commits that reference this issue on Sep 18, 2026

    pythongh-150097: Move _testclinic to multi-phase init

    c18b56b

    pythongh-150097: Move _testclinic to multi-phase init

    719e136

    pythongh-150097: Move _testclinic to multi-phase init

    278c998
  7. skirpichev
    added a commit that references this issue on Sep 26, 2026

    pythongh-150097: Move _testclinic to multi-phase init

    6c3d922
  8. cmaloney
    added a commit that references this issue on Oct 5, 2026

    Merge remote-tracking branch 'upstream/main' into pythongh-150097-tes…

    93c43b5
  9. cmaloney
    added a commit that references this issue on Oct 13, 2026

    Merge remote-tracking branch 'upstream/main' into pythongh-150097-tes…

    7337c79
  10. cmaloney
    added 3 commits that reference this issue on Oct 21, 2026

    Merge remote-tracking branch 'upstream/main' into pythongh-150097-tes…

    d0d168c

    Merge remote-tracking branch 'upstream/main' into pythongh-150097-cli…

    7b52e7a

    Merge remote-tracking branch 'upstream/main' into pythongh-150097-cli…

    7ef8883
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @cmaloney
    cmaloney

Labels

extension-modulesC modules in the Modules dirC modules in the Modules dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — 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.