mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-117764: Add signatures in the atexit module (GH-117776)
This commit is contained in:
parent
35f60c3def
commit
3a26e29215
1 changed files with 10 additions and 5 deletions
|
@ -164,7 +164,8 @@ _PyAtExit_Call(PyInterpreterState *interp)
|
||||||
|
|
||||||
|
|
||||||
PyDoc_STRVAR(atexit_register__doc__,
|
PyDoc_STRVAR(atexit_register__doc__,
|
||||||
"register(func, *args, **kwargs) -> func\n\
|
"register($module, func, /, *args, **kwargs)\n\
|
||||||
|
--\n\
|
||||||
\n\
|
\n\
|
||||||
Register a function to be executed upon normal program termination\n\
|
Register a function to be executed upon normal program termination\n\
|
||||||
\n\
|
\n\
|
||||||
|
@ -221,7 +222,8 @@ atexit_register(PyObject *module, PyObject *args, PyObject *kwargs)
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(atexit_run_exitfuncs__doc__,
|
PyDoc_STRVAR(atexit_run_exitfuncs__doc__,
|
||||||
"_run_exitfuncs() -> None\n\
|
"_run_exitfuncs($module, /)\n\
|
||||||
|
--\n\
|
||||||
\n\
|
\n\
|
||||||
Run all registered exit functions.\n\
|
Run all registered exit functions.\n\
|
||||||
\n\
|
\n\
|
||||||
|
@ -236,7 +238,8 @@ atexit_run_exitfuncs(PyObject *module, PyObject *unused)
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(atexit_clear__doc__,
|
PyDoc_STRVAR(atexit_clear__doc__,
|
||||||
"_clear() -> None\n\
|
"_clear($module, /)\n\
|
||||||
|
--\n\
|
||||||
\n\
|
\n\
|
||||||
Clear the list of previously registered exit functions.");
|
Clear the list of previously registered exit functions.");
|
||||||
|
|
||||||
|
@ -248,7 +251,8 @@ atexit_clear(PyObject *module, PyObject *unused)
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(atexit_ncallbacks__doc__,
|
PyDoc_STRVAR(atexit_ncallbacks__doc__,
|
||||||
"_ncallbacks() -> int\n\
|
"_ncallbacks($module, /)\n\
|
||||||
|
--\n\
|
||||||
\n\
|
\n\
|
||||||
Return the number of registered exit functions.");
|
Return the number of registered exit functions.");
|
||||||
|
|
||||||
|
@ -260,7 +264,8 @@ atexit_ncallbacks(PyObject *module, PyObject *unused)
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(atexit_unregister__doc__,
|
PyDoc_STRVAR(atexit_unregister__doc__,
|
||||||
"unregister(func) -> None\n\
|
"unregister($module, func, /)\n\
|
||||||
|
--\n\
|
||||||
\n\
|
\n\
|
||||||
Unregister an exit function which was previously registered using\n\
|
Unregister an exit function which was previously registered using\n\
|
||||||
atexit.register\n\
|
atexit.register\n\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue