]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42639: Cleanup atexitmodule.c (GH-23770)
authorVictor Stinner <vstinner@python.org>
Mon, 14 Dec 2020 21:40:40 +0000 (22:40 +0100)
committerGitHub <noreply@github.com>
Mon, 14 Dec 2020 21:40:40 +0000 (22:40 +0100)
commit83d52044ae4def1e8611a4b1b9263b850ca5c458
treecdc3b90536390556290ca0fc2f12ea54a0135289
parentfdb9efce6ac211f973088eef508740c3fa2bd182
bpo-42639: Cleanup atexitmodule.c (GH-23770)

* Rename "atexitmodule_state" to "struct atexit_state".
* Rename "modstate" to "state".
* Rename "self" parameter to "module".
* test_atexit uses textwrap.dedent().
* Remove _Py_PyAtExit() function: inline it into atexit_exec().
* PyInterpreterState: rename pyexitfunc to atexit_func, rename
  pyexitmodule to atexit_module.
Include/cpython/pylifecycle.h
Include/internal/pycore_interp.h
Lib/test/test_atexit.py
Modules/atexitmodule.c
Python/pylifecycle.c