Skip to content

bpo-42639: Cleanup atexitmodule.c #23770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2020
Merged

bpo-42639: Cleanup atexitmodule.c #23770

merged 1 commit into from
Dec 14, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 14, 2020

  • 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.

https://bugs.python.org/issue42639

* 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.
@vstinner vstinner merged commit 83d5204 into python:master Dec 14, 2020
@vstinner vstinner deleted the cleanup_atexit branch December 14, 2020 21:43
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants