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 an unstable C API for immortalizing objects · Issue #143300 · python/cpython

Add an unstable C API for immortalizing objects #143300

New issue
Copy link
New issue
Copy link
Closed
Closed
Add an unstable C API for immortalizing objects#143300
Copy link
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-featureA feature request or enhancementA feature request or enhancement

Description

@ngoldbaum
ngoldbaum
opened on Dec 30, 2025
Issue body actions

I'd like to add a new C API to allow extensions to mark objects as immortal. See https://discuss.python.org/t/add-an-unstable-c-api-for-immortalizing-objects/105461 for discussion. I'm opening this issue to link a future PR and for visibility for people who don't look at discourse regularly.

Linked PRs

  • gh-143300: implement PyUnstable_SetImmortal #144543

Activity

  1. ZeroIntensity
    added
    topic-C-API
    on Dec 30, 2025
  2. picnixz commented on Dec 30, 2025

    @picnixz
    picnixz
    on Dec 30, 2025
    Member
    More actions

    Considering this idea was already supported by a core dev and that another core dev chimed in to support it, I think it's fine to keep the issue. However, please note that I would have closed it because we don't want issues just for visibility or PRs just for PoCs. Those should be kept in forks, and discussion should still be kept on DPO.

    However, if the proposal becomes too large, it may require a PEP, in which case I'd prefer closing the issue now instead of having back and forth.

    @ZeroIntensity Do you think this requires a PEP? if so, I'd rather close this issue now as the process may be long.

  3. picnixz
    added
    type-featureA feature request or enhancementA feature request or enhancement
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    triagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.
    and removed
    triagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.
    on Dec 30, 2025
  4. ZeroIntensity commented on Dec 30, 2025

    @ZeroIntensity
    ZeroIntensity
    on Dec 30, 2025
    Member
    More actions

    This shouldn't need a PEP, as the idea and implementation are pretty simple. (This isn't proposing immortalization for arbitrary objects; that would require a PEP.) Though we should try to get the C API WG's blessing, because I suspect Petr has some reservations about the dangers of immortality.

  5. kumaraditya303
    added a commit that references this issue on Feb 11, 2026

    gh-143300: implement `PyUnstable_SetImmortal` for marking objects as …

    347d359
  6. kumaraditya303
    closed this as completedon Feb 11, 2026
  7. thunder-coding
    added a commit that references this issue on Feb 15, 2026

    pythongh-143300: implement `PyUnstable_SetImmortal` for marking objec…

    fa84fb6
  8. brijkapadia
    added a commit that references this issue on Feb 28, 2026

    pythongh-143300: implement `PyUnstable_SetImmortal` for marking objec…

    2ce2e1e
  9. ljfp
    added a commit that references this issue on Apr 25, 2026

    pythongh-143300: implement `PyUnstable_SetImmortal` for marking objec…

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-featureA feature request or enhancementA feature request or enhancement

    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.