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 — Add Documentation for C-API Used by the _xxsubinterpreters Module · Issue #107784 · python/cpython

Add Documentation for C-API Used by the _xxsubinterpreters Module #107784

New issue
Copy link
New issue
Copy link
Open
Open
Add Documentation for C-API Used by the _xxsubinterpreters Module#107784
Copy link
Assignees
ericsnowcurrentlytonybaloney
Labels
3.12only security fixesonly security fixes3.13only security fixesonly security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirtopic-C-APItopic-subinterpreters

Description

@ericsnowcurrently
ericsnowcurrently
opened on Aug 8, 2023
Issue body actions

(from #101524 (comment))

C-API exposed by gh-107359:

  • PyInterpreterID_Type
  • PyInterpreterID_New()
  • PyInterpreterID_LookUp()
  • PyInterpreterState_GetIDObject()
  • PyInterpreterState_RequireIDRef()
  • atexit_datacallbackfunc
  • PyUnstable_AtExit()
  • PyUnstable_InterpreterState_GetMainModule()

Add tests too.

Linked PRs

  • gh-107784 Document interpid C-API and new Unstable API for fetching __main__ of interpreter #112548

Activity

  1. ericsnowcurrently
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    topic-subinterpreters
    topic-C-API
    3.12only security fixesonly security fixes
    3.13only security fixesonly security fixes
    on Aug 8, 2023
  2. ericsnowcurrently
    self-assigned this
    on Aug 8, 2023
  3. github-project-automation
    added this to Subinterpreterson Aug 8, 2023
  4. github-project-automation
    moved this to Todo in Subinterpreterson Aug 8, 2023
  5. ericsnowcurrently commented on Aug 8, 2023

    @ericsnowcurrently
    ericsnowcurrently
    on Aug 8, 2023
    MemberAuthor
    More actions

    Also the _PyCrossInterpreterData API, though I expect PEP 554 will be addressing this for 3.13+.

    (see #107068 (comment))

  6. tonybaloney commented on Nov 27, 2023

    @tonybaloney
    tonybaloney
    on Nov 27, 2023
    Contributor
    More actions

    @ericsnowcurrently you can assign this to me if you want, I've spent enough time looking at this code to document it and add tests.

    Reacted by Eric Snow
  7. ericsnowcurrently
    assigned
    tonybaloney
    on Nov 27, 2023
  8. tonybaloney commented on Nov 30, 2023

    @tonybaloney
    tonybaloney
    on Nov 30, 2023
    Contributor
    More actions

    I've got the following two functions as well :

    PyAPI_FUNC(int) _PyInterpreterState_RequiresIDRef(PyInterpreterState *);
    PyAPI_FUNC(void) _PyInterpreterState_RequireIDRef(PyInterpreterState *, int);

    You mentioned PyInterpreterState_RequireIDRef() but there isn't a public API function called that from what I can find (only the private one)

  9. tonybaloney commented on Nov 30, 2023

    @tonybaloney
    tonybaloney
    on Nov 30, 2023
    Contributor
    More actions

    I think Py_NewInterpreterFromConfig is new as well

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

Metadata

Metadata

Assignees

  • @ericsnowcurrently
    ericsnowcurrently
  • @tonybaloney
    tonybaloney

Labels

3.12only security fixesonly security fixes3.13only security fixesonly security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirtopic-C-APItopic-subinterpreters

Projects

  • Subinterpreters
    Status
    Todo
    Show more project fields

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.