You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add an unstable C API for immortalizing objects #143300
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.
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.
Activity
picnixz commentedon Dec 30, 2025
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.
ZeroIntensity commentedon Dec 30, 2025
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.
gh-143300: implement `PyUnstable_SetImmortal` for marking objects as …
pythongh-143300: implement `PyUnstable_SetImmortal` for marking objec…
pythongh-143300: implement `PyUnstable_SetImmortal` for marking objec…
pythongh-143300: implement `PyUnstable_SetImmortal` for marking objec…