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 — gh-101659: Add _Py_AtExit() by ericsnowcurrently · Pull Request #103298 · python/cpython

Conversation

@ericsnowcurrently

@ericsnowcurrently ericsnowcurrently commented Apr 6, 2023 •
edited by bedevere-bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

The function is like Py_AtExit() but for a single interpreter. This is a companion to the atexit module's register() function, taking a C callback instead of a Python one.

We also update the _xxinterpchannels module to use _Py_AtExit(), which is the motivating case. (This is based on pain points while working on gh-101660.)

  • Issue: Isolate the Default Object Allocator between Interpreters #101659

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ericsnowcurrently added 10 commits April 5, 2023 16:16
@ericsnowcurrently
atexit_callback -> atexit_py_callback.
f5ae710
@ericsnowcurrently
Add pycore_atexit.h.
e6d4776
@ericsnowcurrently
Add _Py_AtExit().
c719f02
@ericsnowcurrently
Add a TODO comment.
47c302d
@ericsnowcurrently
Move _Py_AtExit() to the public API.
aaeaaa6
@ericsnowcurrently
Test a constraint.
b5396e4
@ericsnowcurrently
Add an atexit callback for _xxinterpchannels.
448b48a
@ericsnowcurrently
Implement the callback.
c86f738
@ericsnowcurrently
Drop the _PyCrossInterpreterData_Clear() call in _xxinterpchannels.
1827feb
@ericsnowcurrently
Drop the _PyCrossInterpreterData_Clear() call in _xxsubinterpreters.
82b395c
@ericsnowcurrently ericsnowcurrently added the skip news label Apr 6, 2023
@ericsnowcurrently
ericsnowcurrently requested a review from a team as a code owner April 6, 2023 00:04
@bedevere-bot bedevere-bot mentioned this pull request Apr 6, 2023
Isolate the Default Object Allocator between Interpreters #101659
Closed
@bedevere-bot bedevere-bot added the awaiting core review label Apr 6, 2023
@ericsnowcurrently
ericsnowcurrently removed the request for review from a team April 6, 2023 00:42
@ericsnowcurrently
ericsnowcurrently merged commit 03089fd into python:main Apr 6, 2023
@bedevere-bot bedevere-bot removed the awaiting core review label Apr 6, 2023
@ericsnowcurrently
ericsnowcurrently deleted the atexit-c-callback branch April 6, 2023 00:42
gaogaotiantian pushed a commit to gaogaotiantian/cpython that referenced this pull request Apr 8, 2023
@ericsnowcurrently @gaogaotiantian
pythongh-101659: Add _Py_AtExit() (pythongh-103298)
ebae223
The function is like Py_AtExit() but for a single interpreter.  This is a companion to the atexit module's register() function, taking a C callback instead of a Python one.

We also update the _xxinterpchannels module to use _Py_AtExit(), which is the motivating case.  (This is inspired by pain points felt while working on pythongh-101660.)
warsaw pushed a commit to warsaw/cpython that referenced this pull request Apr 11, 2023
@ericsnowcurrently @warsaw
pythongh-101659: Add _Py_AtExit() (pythongh-103298)
6366fa0
The function is like Py_AtExit() but for a single interpreter.  This is a companion to the atexit module's register() function, taking a C callback instead of a Python one.

We also update the _xxinterpchannels module to use _Py_AtExit(), which is the motivating case.  (This is inspired by pain points felt while working on pythongh-101660.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ericsnowcurrently @bedevere-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.